Skip to content

Commit

Permalink
Hacky fix for TM crashes but it seems to work
Browse files Browse the repository at this point in the history
  • Loading branch information
JustRegularLuna committed Jan 5, 2016
1 parent b86dd2f commit a7e3a88
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions home.asm
Expand Up @@ -1519,6 +1519,12 @@ DisplayListMenuIDLoop:: ; 2c53 (0:2c53)
ld a,[wWhichPokemon]
call GetPartyMonName
.storeChosenEntry ; store the menu entry that the player chose and return

; hacky way to stop TMs crashing for now
ld a, $50 ; "@"
ld [wTileMapBackup2 - 1], a ; make sure the string at wcd6d is always terminated so it can't crash
; original script follows
ld de,wcd6d
call CopyStringToCF4B ; copy name to wcf4b
ld a,$01
Expand Down

0 comments on commit a7e3a88

Please sign in to comment.