[nostalgia/core/gba] Add missing section multiplier to TILE_ADDR section index
This commit is contained in:
parent
4247ac0651
commit
0fbe1b96c3
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user