summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/koopatlas/mapdata.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/koopatlas/mapdata.cpp b/src/koopatlas/mapdata.cpp
index 1857b18..ab8ef3a 100644
--- a/src/koopatlas/mapdata.cpp
+++ b/src/koopatlas/mapdata.cpp
@@ -168,7 +168,8 @@ bool dKPMapData_c::loadTilesets() {
for (int i = 0; i < data->tilesetCount; i++) {
char *filename = ((char*)data) + (data->tilesets[i].dummy[3] - 0x10000000);
- result &= (tilesetLoaders[i].load(filename) != 0);
+ void *heap = (i < 9) ? mHeap::gameHeaps[2] : mHeap::archiveHeap;
+ result &= (tilesetLoaders[i].load(filename, 0, heap) != 0);
}
if (result) {