diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-25 22:31:50 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-25 23:31:02 +0300 |
commit | 7ee1d89a656c05b62fa3104b59504afed0037b69 (patch) | |
tree | 7a20e371ba1035fc43135f069407b51d81d15527 /src/resources/db/mapdb.cpp | |
parent | d49a520d19f28c613c68b574686b182a9c0621be (diff) | |
download | mv-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.gz mv-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.bz2 mv-7ee1d89a656c05b62fa3104b59504afed0037b69.tar.xz mv-7ee1d89a656c05b62fa3104b59504afed0037b69.zip |
Add missing checks into db directory.
Diffstat (limited to 'src/resources/db/mapdb.cpp')
-rw-r--r-- | src/resources/db/mapdb.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/resources/db/mapdb.cpp b/src/resources/db/mapdb.cpp index 1bd63af2f..44c37771b 100644 --- a/src/resources/db/mapdb.cpp +++ b/src/resources/db/mapdb.cpp @@ -98,6 +98,8 @@ void MapDB::loadRemapXmlFile(const std::string &fileName) void MapDB::readMap(XmlNodePtrConst node) { + if (!node) + return; const std::string map = XML::getProperty(node, "name", ""); if (map.empty()) return; @@ -116,6 +118,8 @@ void MapDB::readMap(XmlNodePtrConst node) void MapDB::readAtlas(XmlNodePtrConst node) { + if (!node) + return; const std::string atlas = XML::getProperty(node, "name", ""); if (atlas.empty()) return; |