shithub: pokecrystal

Download patch

ref: 7b67e7296ad1d427672a7b0c29f0c7411d01d90f
parent: 818272097951b4e703a28a6ad939aac68d03b7d4
author: i0brendan0 <19826742+i0brendan0@users.noreply.github.com>
date: Wed Aug 30 16:56:11 EDT 2017

Remove possibility of garbage characters

If the ds 2 that is behind OTClassName is deleted or decreased, the game will continue to display characters for trainer classes that are 12 or 13 characters long, including the @ terminator. The correct constant has been put in place and the ds 2 removed, but no one would have known it was wrong if they hadn't have removed the ds 2.

--- a/wram.asm
+++ b/wram.asm
@@ -379,9 +379,7 @@
 wEnemyTrainerItem2:: ds 1 ; c651
 wEnemyTrainerBaseReward:: ds 1 ; c652
 wEnemyTrainerAIFlags:: ds 3 ; c653
-OTClassName:: ds NAME_LENGTH ; c656
-
-	ds 2
+OTClassName:: ds TRAINER_CLASS_NAME_LENGTH ; c656
 
 CurOTMon:: ; c663
 	ds 1