diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-20 16:40:16 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-20 16:40:16 +0300 |
commit | 35f57ec248b675b6ba9d86a4c446114237b47235 (patch) | |
tree | ab2e9c71dcf835fc4fc886c496f201662e90ce8f | |
parent | 79ec0846970bb01a1cbe4f5404613b9bb0b1213b (diff) | |
download | plus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.gz plus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.bz2 plus-35f57ec248b675b6ba9d86a4c446114237b47235.tar.xz plus-35f57ec248b675b6ba9d86a4c446114237b47235.zip |
Fix crash with empty map.
-rw-r--r-- | src/resources/mapreader.cpp | 2 |
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; } |