diff options
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r-- | src/resources/mapreader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp index 25e9750de..d2bcde06d 100644 --- a/src/resources/mapreader.cpp +++ b/src/resources/mapreader.cpp @@ -370,7 +370,7 @@ Map *MapReader::readMap(xmlNodePtr node, const std::string &path) } map->initializeAmbientLayers(); - + map->clearIndexedTilesets(); return map; } @@ -424,6 +424,8 @@ void MapReader::readLayer(xmlNodePtr node, Map *map) const bool isFringeLayer = (name.substr(0, 6) == "fringe"); const bool isCollisionLayer = (name.substr(0, 9) == "collision"); + map->indexTilesets(); + MapLayer *layer = 0; if (!isCollisionLayer) |