summaryrefslogtreecommitdiff
path: root/src/resources/db/npcdb.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/db/npcdb.cpp')
-rw-r--r--src/resources/db/npcdb.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp
index 8b47d33b4..1d2cf4899 100644
--- a/src/resources/db/npcdb.cpp
+++ b/src/resources/db/npcdb.cpp
@@ -109,6 +109,9 @@ void NPCDB::loadXmlFile(const std::string &fileName)
currentInfo->setAvatarId(fromInt(XML::getProperty(
npcNode, "avatar", 0), BeingTypeId));
+ currentInfo->setAllowDelete(XML::getBoolProperty(npcNode,
+ "allowDelete", true));
+
SpriteDisplay display;
for_each_xml_child_node(spriteNode, npcNode)
{