summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/account-server/accounthandler.cpp4
-rw-r--r--src/game-server/attributemanager.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/src/account-server/accounthandler.cpp b/src/account-server/accounthandler.cpp
index 99faad62..9008d26e 100644
--- a/src/account-server/accounthandler.cpp
+++ b/src/account-server/accounthandler.cpp
@@ -146,7 +146,7 @@ AccountHandler::AccountHandler(const std::string &attrFile):
XML::Document doc(absPathFile, int());
node = doc.rootNode();
- if (!node || !xmlStrEqual(node->name, BAD_CAST "stats"))
+ if (!node || !xmlStrEqual(node->name, BAD_CAST "attributes"))
{
LOG_FATAL("Account handler: " << attrFile
<< " is not a valid database file!");
@@ -154,7 +154,7 @@ AccountHandler::AccountHandler(const std::string &attrFile):
return;
}
for_each_xml_child_node(attributenode, node)
- if (xmlStrEqual(attributenode->name, BAD_CAST "stat"))
+ if (xmlStrEqual(attributenode->name, BAD_CAST "attribute"))
{
unsigned int id = XML::getProperty(attributenode, "id", 0);
if (!id) continue;
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp
index 817eb6d6..ba94b815 100644
--- a/src/game-server/attributemanager.cpp
+++ b/src/game-server/attributemanager.cpp
@@ -51,7 +51,7 @@ void AttributeManager::reload()
XML::Document doc(absPathFile, int());
node = doc.rootNode();
- if (!node || !xmlStrEqual(node->name, BAD_CAST "stats"))
+ if (!node || !xmlStrEqual(node->name, BAD_CAST "attributes"))
{
LOG_FATAL("Attribute Manager: " << mAttributeReferenceFile
<< " is not a valid database file!");
@@ -63,7 +63,7 @@ void AttributeManager::reload()
for_each_xml_child_node(attributenode, node)
{
- if (xmlStrEqual(attributenode->name, BAD_CAST "stat"))
+ if (xmlStrEqual(attributenode->name, BAD_CAST "attribute"))
{
unsigned int id = XML::getProperty(attributenode, "id", 0);