diff options
Diffstat (limited to 'src/resources/npcdb.cpp')
-rw-r--r-- | src/resources/npcdb.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/npcdb.cpp b/src/resources/npcdb.cpp index f20654829..5a1ad9985 100644 --- a/src/resources/npcdb.cpp +++ b/src/resources/npcdb.cpp @@ -79,6 +79,9 @@ void NPCDB::load() SpriteDisplay display; for_each_xml_child_node(spriteNode, npcNode) { + if (!spriteNode->xmlChildrenNode) + continue; + if (xmlStrEqual(spriteNode->name, BAD_CAST "sprite")) { SpriteReference *currentSprite = new SpriteReference; |