summaryrefslogtreecommitdiff
path: root/src/game-server/attributemanager.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-08-02 22:59:34 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2010-08-02 23:48:29 +0200
commit5f4936e70b92a625f54d791debadf65d8fa3a02c (patch)
treeea80783c5fc66416c92abb3d8c5d21ce599ac7bb /src/game-server/attributemanager.cpp
parent9b30cad049d8f3ac9c63290331e73515d51c0260 (diff)
downloadmanaserv-5f4936e70b92a625f54d791debadf65d8fa3a02c.tar.gz
manaserv-5f4936e70b92a625f54d791debadf65d8fa3a02c.tar.bz2
manaserv-5f4936e70b92a625f54d791debadf65d8fa3a02c.tar.xz
manaserv-5f4936e70b92a625f54d791debadf65d8fa3a02c.zip
Changed the stat file name to attributes.xml.
I also made it required to start properly since it's now the case. Reviewed-by: Jaxad0127.
Diffstat (limited to 'src/game-server/attributemanager.cpp')
-rw-r--r--src/game-server/attributemanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp
index f62abbc1..817eb6d6 100644
--- a/src/game-server/attributemanager.cpp
+++ b/src/game-server/attributemanager.cpp
@@ -43,7 +43,8 @@ void AttributeManager::reload()
absPathFile = ResourceManager::resolve(mAttributeReferenceFile);
if (absPathFile.empty()) {
- LOG_ERROR("Attribute Manager: Could not find " << mAttributeReferenceFile << "!");
+ LOG_FATAL("Attribute Manager: Could not find " << mAttributeReferenceFile << "!");
+ exit(3);
return;
}
@@ -52,8 +53,9 @@ void AttributeManager::reload()
if (!node || !xmlStrEqual(node->name, BAD_CAST "stats"))
{
- LOG_ERROR("Attribute Manager: " << mAttributeReferenceFile
+ LOG_FATAL("Attribute Manager: " << mAttributeReferenceFile
<< " is not a valid database file!");
+ exit(3);
return;
}