summaryrefslogtreecommitdiff
path: root/src/battle_intro.c
diff options
context:
space:
mode:
authorMichael Panzlaff <michael.panzlaff@fau.de>2019-06-25 22:59:21 +0200
committerhuderlem <huderlem@gmail.com>2019-06-29 11:08:46 -0500
commit75005346769b2733dd36ff7ae2239709bc1bc983 (patch)
treebf389c811fa313bb0379cf915f0aa57061c6f5eb /src/battle_intro.c
parentf3c7e1cc819f1927353f7c236ee36c4965c05167 (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