From 0fbe1b96c32c1245f0651c823a5653ee81f6d3ed Mon Sep 17 00:00:00 2001 From: Gary Talent Date: Tue, 12 Nov 2019 21:26:41 -0600 Subject: [PATCH] [nostalgia/core/gba] Add missing section multiplier to TILE_ADDR section index --- src/nostalgia/core/gba/gfx.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nostalgia/core/gba/gfx.cpp b/src/nostalgia/core/gba/gfx.cpp index f109940a..19b0fc9b 100644 --- a/src/nostalgia/core/gba/gfx.cpp +++ b/src/nostalgia/core/gba/gfx.cpp @@ -132,7 +132,7 @@ ox::Error loadTileSheet(Context *ctx, GbaTileMapTarget target; target.pal.palette = &MEM_PALLETE_BG[section]; target.bgCtl = &bgCtl(section); - target.tileMap = &TILE_ADDR[section]; + target.tileMap = &TILE_ADDR[section * 512]; oxReturnError(ox::readMC(ts, tsStat.size, &target)); // load external palette if available if (paletteAddr) {