summaryrefslogtreecommitdiff
path: root/engine/search.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/search.asm')
-rwxr-xr-xengine/search.asm2
1 files changed, 1 insertions, 1 deletions
diff --git a/engine/search.asm b/engine/search.asm
index 72b734e36..76be0e159 100755
--- a/engine/search.asm
+++ b/engine/search.asm
@@ -219,7 +219,7 @@ CheckOwnMon: ; 0x4a7ba
ld hl, PlayerName
-rept PLAYER_NAME_LENGTH_JAPANESE - 1 ; should be PLAYER_NAME_LENGTH - 1
+rept NAME_LENGTH_JAPANESE +- 2 ; should be PLAYER_NAME_LENGTH +- 2
ld a, [de]
cp [hl]
jr nz, .notfound