[nostalgia/core/gba] Add missing section multiplier to TILE_ADDR section index

This commit is contained in:
Gary Talent 2019-11-12 21:26:41 -06:00
parent 4247ac0651
commit 0fbe1b96c3

View File

@ -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) {