From 6ab00abe653f502e4b07f5054d7b7f7512ce7ab1 Mon Sep 17 00:00:00 2001 From: Treeki Date: Wed, 29 Aug 2012 20:20:40 +0200 Subject: fuck me, I removed this change by accident... --- src/koopatlas/mapdata.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/koopatlas/mapdata.cpp b/src/koopatlas/mapdata.cpp index ef0a747..44310ea 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) { -- cgit v1.2.3