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.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/resources/db/npcdb.cpp b/src/resources/db/npcdb.cpp
index 2c840ace2..542724e27 100644
--- a/src/resources/db/npcdb.cpp
+++ b/src/resources/db/npcdb.cpp
@@ -127,6 +127,13 @@ void NPCDB::loadXmlFile(const std::string &fileName)
display.particles.push_back(reinterpret_cast<const char*>(
spriteNode->xmlChildrenNode->content));
}
+ else if (xmlNameEqual(spriteNode, "menu"))
+ {
+ std::string name = XML::getProperty(spriteNode, "name", "");
+ std::string command = XML::getProperty(spriteNode,
+ "command", "");
+ currentInfo->addMenu(name, command);
+ }
}
currentInfo->setDisplay(display);