diff options
author | Freeyorp <Freeyorp101@hotmail.com> | 2010-08-30 02:03:46 +1200 |
---|---|---|
committer | Freeyorp <Freeyorp101@hotmail.com> | 2010-08-30 02:13:01 +1200 |
commit | 8e6908aa326c1c16f4c017e0b3e912cfe1d80d15 (patch) | |
tree | de8184c96e05a84143160e618fd4cf0e27c64379 /src/account-server/accounthandler.cpp | |
parent | 64432a11e3135d82c37c65b6c8560312091453cd (diff) | |
download | manaserv-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/account-server/accounthandler.cpp')
-rw-r--r-- | src/account-server/accounthandler.cpp | 4 |
1 files changed, 2 insertions, 2 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; |