Fix palette pointer in GBALoad8
Jeffrey Pfau jeffrey@endrift.com
Fri, 29 Aug 2014 02:31:15 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -336,7 +336,7 @@ case REGION_IO:
value = (GBAIORead(gba, address & 0xFFFE) >> ((address & 0x0001) << 3)) & 0xFF; break; case REGION_PALETTE_RAM: - value = ((int8_t*) gba->video.renderer->palette)[address & (SIZE_PALETTE_RAM - 1)]; + value = ((int8_t*) gba->video.palette)[address & (SIZE_PALETTE_RAM - 1)]; break; case REGION_VRAM: value = ((int8_t*) gba->video.renderer->vram)[address & 0x0001FFFF];