summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-20 16:40:16 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-20 16:40:16 +0300
commit35f57ec248b675b6ba9d86a4c446114237b47235 (patch)
treeab2e9c71dcf835fc4fc886c496f201662e90ce8f /src/resources/mapreader.cpp
parent79ec0846970bb01a1cbe4f5404613b9bb0b1213b (diff)
downloadplus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.gz
plus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.bz2
plus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.xz
plus-35f57ec248b675b6ba9d86a4c446114237b47235.zip
Fix crash with empty map.
Diffstat (limited to 'src/resources/mapreader.cpp')
-rw-r--r--src/resources/mapreader.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resources/mapreader.cpp b/src/resources/mapreader.cpp
index cfce7c397..14adad5e2 100644
--- a/src/resources/mapreader.cpp
+++ b/src/resources/mapreader.cpp
@@ -1266,6 +1266,8 @@ Map *MapReader::createEmptyMap(const std::string &restrict filename,
-1);
map->addLayer(layer);
map->updateDrawLayersList();
+ map->updateConditionLayers();
+ map->preCacheLayers();
return map;
}