File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,14 @@ GetItemName::
2929; starting at wcd6d
3030 push hl
3131 push bc
32+
33+ ;If you are going to make GetName check for wNameListType=ITEM_NAME,
34+ ;then you have to make sure wNameListType get the proper value here.
35+ ;Otherwise the game can crash when trying to learn TMHM items one after the other.
36+ ;Specifically if only TMHM items are in the current list view. - jojo
37+ ld a , ITEM_NAME
38+ ld [ wNameListType ], a
39+
3240 ld a , [ wd11e ]
3341 cp HM01 ; is this a TM/HM?
3442 jr nc , .Machine
Original file line number Diff line number Diff line change 1- ..............}vvvvvvvvvvvv}Qvvvvvvvvv}vvvvvvvvvvvvvvv45vvvvvvvv+ ,vvvv8-888 vvNvvvvv vvvvR}vvvv vvv}N}vvv>vv}}}}Q}}}}}}QN
1+ ..............}vvvvvvvvvvvv}Qvvvvvvvvv}vvvvvvvvvvvvvvv45vvvvvvvv+7 ,vvvv8-588 vvNvvvvv vvvvR}vvvv vvv}N}vvv>vv}}}}Q}}}}}}QN
You can’t perform that action at this time.
0 commit comments