summaryrefslogtreecommitdiff
path: root/src/game-server/attributemanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/attributemanager.cpp')
-rw-r--r--src/game-server/attributemanager.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/game-server/attributemanager.cpp b/src/game-server/attributemanager.cpp
index 6cbdae9f..31566bed 100644
--- a/src/game-server/attributemanager.cpp
+++ b/src/game-server/attributemanager.cpp
@@ -21,7 +21,6 @@
#include "game-server/attributemanager.h"
#include "common/defines.h"
-#include "common/resourcemanager.h"
#include "utils/string.h"
#include "utils/logger.h"
@@ -112,16 +111,9 @@ const std::string *AttributeManager::getTag(const ModifierLocation &location) co
void AttributeManager::readAttributesFile()
{
- std::string absPathFile = ResourceManager::resolve(mAttributeReferenceFile);
- if (absPathFile.empty())
- {
- LOG_FATAL("Attribute Manager: Could not find "
- << mAttributeReferenceFile << "!");
- exit(EXIT_XML_NOT_FOUND);
- }
-
- XML::Document doc(absPathFile, false);
+ XML::Document doc(mAttributeReferenceFile);
xmlNodePtr node = doc.rootNode();
+
if (!node || !xmlStrEqual(node->name, BAD_CAST "attributes"))
{
LOG_FATAL("Attribute Manager: " << mAttributeReferenceFile