diff options
author | Michael Panzlaff <michael.panzlaff@fau.de> | 2019-06-25 22:59:21 +0200 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-06-29 11:08:46 -0500 |
commit | 75005346769b2733dd36ff7ae2239709bc1bc983 (patch) | |
tree | bf389c811fa313bb0379cf915f0aa57061c6f5eb /src/battle_intro.c | |
parent | f3c7e1cc819f1927353f7c236ee36c4965c05167 (diff) |
fix unaligned memory access in BlendPalette
This problem is only going to occur in versions where the palette
buffer isn't aligned to 4 bytes (which it is in a matching pokeemerald).
Since agbcc returns sizeof(PlttData) = 4, it will read words
instead of half words. This causes unnecessary emulator warnings
in the function "BlendPalette".
Aligning the buffers to 4 bytes fixes this.
Diffstat (limited to 'src/battle_intro.c')
0 files changed, 0 insertions, 0 deletions