summaryrefslogtreecommitdiff
path: root/home.asm
diff options
context:
space:
mode:
authorluckytyphlosion <alan.rj.huang@gmail.com>2015-09-03 14:42:46 -0400
committerluckytyphlosion <alan.rj.huang@gmail.com>2015-09-03 14:42:46 -0400
commitb7ed43bd568045f265fc96abee480ff8bb8e2177 (patch)
tree2fbfc9ff6bdd61ffc64ec0d94ee264a414f61f48 /home.asm
parent6de043f87d500014c7cc9c85a203f387a9cd4c7a (diff)
Make pokeyellow build correctly.
Diffstat (limited to 'home.asm')
-rw-r--r--home.asm8
1 files changed, 3 insertions, 5 deletions
diff --git a/home.asm b/home.asm
index 0d4cbf4f..36870300 100644
--- a/home.asm
+++ b/home.asm
@@ -648,11 +648,11 @@ GetMonHeader:: ; 132f (0:132f)
predef IndexToPokedex ; convert pokemon ID in [wd11e] to pokedex number
ld a,[wd11e]
dec a
- ld bc,MonBaseStatsEnd - MonBaseStats
+ ld bc,28
ld hl,BaseStats
call AddNTimes
ld de,W_MONHEADER
- ld bc,MonBaseStatsEnd - MonBaseStats
+ ld bc,28
call CopyData
jr .done
.specialID
@@ -4858,8 +4858,6 @@ GivePokemon:: ; 3e59 (0:3e59)
xor a ; PLAYER_PARTY_DATA
ld [wMonDataLocation], a
jpba _GivePokemon ; 3d:66fa
- ld hl, _GivePokemon
- jp Bankswitch
Random:: ; 3e6d (0:3e6d)
; Return a random number in a.
@@ -4981,7 +4979,7 @@ SetMapTextPointer:: ; 3f54 (0:3f54)
ret
TextPredefs:: ; 3f67 (0:3f67)
- ;dr $3f67,$4000
+ dr $3f67,$4000
; add_tx_pre CardKeySuccessText ; 01
; add_tx_pre CardKeyFailText ; 02
; add_tx_pre RedBedroomPC ; 03