diff options
author | YamaArashi <YamaArashi@users.noreply.github.com> | 2017-04-29 13:57:08 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-29 13:57:08 -0700 |
commit | db789b296cd739964c53cd60d4673238a175837a (patch) | |
tree | c8b14e64de99cc017d301bcec4201d418b9d6678 /src/decompress.c | |
parent | 8cb59c9783ec33d8feac475a6259aec240fd2234 (diff) | |
parent | bb433954d014b0c13b3f7a1f16f8fa9fdf76fbe9 (diff) |
Merge pull request #249 from yenatch/master
(Almost) decompile util.s.
Diffstat (limited to 'src/decompress.c')
-rw-r--r-- | src/decompress.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/decompress.c b/src/decompress.c index fb91ebd67..12be8a055 100644 --- a/src/decompress.c +++ b/src/decompress.c @@ -91,11 +91,11 @@ void LoadSpecialPokePic(const struct SpriteSheet *spriteSheet, u32 b, u32 c, u32 { u16 i = (((g & 0x3000000) >> 18) | ((g & 0x30000) >> 12) | ((g & 0x300) >> 6) | (g & 3)) % 0x1C; - // if it is Unown A, set the index to where Unown begins, otherwise add the egg index to get the correct letter to load. + // The other Unowns are separate from Unown A. if (i == 0) i = SPECIES_UNOWN; else - i += SPECIES_EGG; + i += SPECIES_UNOWN_B - 1; if (frontOrBack8 == 0) LZ77UnCompWram(gMonBackPicTable[i].data, dest); |