summaryrefslogtreecommitdiff
path: root/scripts/oakslab.asm
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2015-08-07 04:24:06 -0700
committerYamaArashi <shadow962@live.com>2015-08-07 04:24:06 -0700
commit525f1b96f390a7b7625574405cad56277f200ef3 (patch)
treea715da91e46ebd5ba8a2e5eb808f49cf7ff854a2 /scripts/oakslab.asm
parent8d30191707758a36b513c4368b9fdb7705730865 (diff)
named CountSetBits output variable
Diffstat (limited to 'scripts/oakslab.asm')
-rwxr-xr-xscripts/oakslab.asm4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/oakslab.asm b/scripts/oakslab.asm
index 996ab754..c52f00cf 100755
--- a/scripts/oakslab.asm
+++ b/scripts/oakslab.asm
@@ -969,8 +969,8 @@ OaksLabText5: ; 1d248 (7:5248)
ld hl, wPokedexOwned
ld b, wPokedexOwnedEnd - wPokedexOwned
call CountSetBits
- ld a, [wd11e]
- cp $2
+ ld a, [wNumSetBits]
+ cp 2
jr c, .asm_1d279
CheckEvent EVENT_GOT_POKEDEX
jr z, .asm_1d279