summaryrefslogtreecommitdiff
path: root/src/effectmanager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/effectmanager.cpp')
-rw-r--r--src/effectmanager.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/effectmanager.cpp b/src/effectmanager.cpp
index 52e848463..f76f3ebd0 100644
--- a/src/effectmanager.cpp
+++ b/src/effectmanager.cpp
@@ -23,6 +23,7 @@
#include "effectmanager.h"
#include "being.h"
+#include "configuration.h"
#include "logger.h"
#include "particle.h"
#include "soundmanager.h"
@@ -32,12 +33,13 @@
EffectManager::EffectManager() :
mEffects()
{
- XML::Document doc("effects.xml");
+ XML::Document doc(paths.getStringValue("effectsFile"));
const XmlNodePtr root = doc.rootNode();
if (!root || !xmlNameEqual(root, "being-effects"))
{
- logger->log1("Error loading being effects file: effects.xml");
+ logger->log("Error loading being effects file: "
+ + paths.getStringValue("effectsFile"));
return;
}
else