mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-17 02:40:50 +12:00
Fixed TM moves crashing when used subsequently
This commit is contained in:
parent
246fca413c
commit
ebd9b99357
|
@ -29,6 +29,14 @@ GetItemName::
|
||||||
; starting at wcd6d
|
; starting at wcd6d
|
||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
|
|
||||||
|
;If you are going to make GetName check for wNameListType=ITEM_NAME,
|
||||||
|
;then you have to make sure wNameListType get the proper value here.
|
||||||
|
;Otherwise the game can crash when trying to learn TMHM items one after the other.
|
||||||
|
;Specifically if only TMHM items are in the current list view. - jojo
|
||||||
|
ld a, ITEM_NAME
|
||||||
|
ld [wNameListType], a
|
||||||
|
|
||||||
ld a, [wd11e]
|
ld a, [wd11e]
|
||||||
cp HM01 ; is this a TM/HM?
|
cp HM01 ; is this a TM/HM?
|
||||||
jr nc, .Machine
|
jr nc, .Machine
|
||||||
|
|
Loading…
Reference in a new issue