summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFreeyorp <Freeyorp101@hotmail.com>2010-08-30 02:03:46 +1200
committerFreeyorp <Freeyorp101@hotmail.com>2010-08-30 02:13:01 +1200
commit8e6908aa326c1c16f4c017e0b3e912cfe1d80d15 (patch)
treede8184c96e05a84143160e618fd4cf0e27c64379 /src
parent64432a11e3135d82c37c65b6c8560312091453cd (diff)
downloadmanaserv-8e6908aa326c1c16f4c017e0b3e912cfe1d80d15.tar.gz
manaserv-8e6908aa326c1c16f4c017e0b3e912cfe1d80d15.tar.bz2
manaserv-8e6908aa326c1c16f4c017e0b3e912cfe1d80d15.tar.xz
manaserv-8e6908aa326c1c16f4c017e0b3e912cfe1d80d15.zip
Change primary and secondary tags in attributes.xml from stats and stat to attributes and attribute respectively.
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);