diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-05 21:35:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-05 21:35:35 +0300 |
commit | edc6ce053eafbaaa55fcf7728e449d9e458a1ddc (patch) | |
tree | 49362fd19396f3e1c39a33b22b4603cc3ed01a53 /src/resources | |
parent | 6f9af529d0ac68ae8321ccff34268766a1b4c236 (diff) | |
download | plus-edc6ce053eafbaaa55fcf7728e449d9e458a1ddc.tar.gz plus-edc6ce053eafbaaa55fcf7728e449d9e458a1ddc.tar.bz2 plus-edc6ce053eafbaaa55fcf7728e449d9e458a1ddc.tar.xz plus-edc6ce053eafbaaa55fcf7728e449d9e458a1ddc.zip |
Add missing check for null pointer.
Diffstat (limited to 'src/resources')
-rw-r--r-- | src/resources/db/npcdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp index 0db5bedc6..3048fb317 100644 --- a/src/resources/db/npcdb.cpp +++ b/src/resources/db/npcdb.cpp @@ -125,6 +125,9 @@ void NPCDB::loadXmlFile(const std::string &fileName) } else if (xmlNameEqual(spriteNode, "particlefx")) { + if (!spriteNode->xmlChildrenNode) + continue; + display.particles.push_back(reinterpret_cast<const char*>( spriteNode->xmlChildrenNode->content)); } |