From a7e3a88219e1d859ce07ad2e103d15be7a8b6f92 Mon Sep 17 00:00:00 2001 From: TheFakeMateo Date: Tue, 5 Jan 2016 16:44:27 -0600 Subject: [PATCH] Hacky fix for TM crashes but it seems to work --- home.asm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/home.asm b/home.asm index 5aaed30d2..ca67728cd 100755 --- a/home.asm +++ b/home.asm @@ -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