summaryrefslogtreecommitdiff
path: root/src/resources/monsterinfo.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/resources/monsterinfo.cpp')
-rw-r--r--src/resources/monsterinfo.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/resources/monsterinfo.cpp b/src/resources/monsterinfo.cpp
index 9104c721..12cdbe3e 100644
--- a/src/resources/monsterinfo.cpp
+++ b/src/resources/monsterinfo.cpp
@@ -23,6 +23,7 @@
#include "utils/dtor.h"
#include "utils/gettext.h"
+#include "configuration.h"
MonsterInfo::MonsterInfo():
mName(_("unnamed")),
@@ -45,7 +46,8 @@ void MonsterInfo::addSound(MonsterSoundEvent event, const std::string &filename)
mSounds[event] = new std::vector<std::string>;
}
- mSounds[event]->push_back("sfx/" + filename);
+ mSounds[event]->push_back(paths.getValue("sfx", "sfx/")
+ + filename);
}
const std::string &MonsterInfo::getSound(MonsterSoundEvent event) const