diff options
| author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:33:05 -0400 |
|---|---|---|
| committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-25 16:44:41 -0400 |
| commit | 95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1 (patch) | |
| tree | 5a7b79846bd7f07e40310da46b21873774a08ef7 /home | |
| parent | Remove unused _GREEN TitleMons data (diff) | |
| download | pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.gz pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.tar.xz pokeyellow-95ec2cf039f0efdc6dadfb6fe766ace231a1b6b1.zip | |
Verify data table and name list sizes with assertion macros
Fixes #312
Diffstat (limited to 'home')
| -rw-r--r-- | home/pokemon.asm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/home/pokemon.asm b/home/pokemon.asm index af83f7a0..4e6e080b 100644 --- a/home/pokemon.asm +++ b/home/pokemon.asm @@ -401,11 +401,11 @@ GetMonHeader:: predef IndexToPokedex ; convert pokemon ID in [wd11e] to pokedex number ld a, [wd11e] dec a - ld bc, MonBaseStatsEnd - MonBaseStats + ld bc, BASE_DATA_SIZE ld hl, BaseStats call AddNTimes ld de, wMonHeader - ld bc, MonBaseStatsEnd - MonBaseStats + ld bc, BASE_DATA_SIZE call CopyData jr .done .specialID @@ -419,7 +419,7 @@ GetMonHeader:: .mew ld hl, MewBaseStats ld de, wMonHeader - ld bc, MonBaseStatsEnd - MonBaseStats + ld bc, BASE_DATA_SIZE ld a, BANK(MewBaseStats) call FarCopyData .done |
