summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorPhilipp Sehmisch <tmw@crushnet.org>2008-01-14 10:48:13 +0000
committerPhilipp Sehmisch <tmw@crushnet.org>2008-01-14 10:48:13 +0000
commit4049c6a791ce349d652c2c770c70d9f1a5909f28 (patch)
treea41f7dafca2b54f9b4f1ff71f291a743f7d29145 /src/sound.cpp
parent524d2d23d632907d9158de93a7237c853ceef241 (diff)
downloadmana-4049c6a791ce349d652c2c770c70d9f1a5909f28.tar.gz
mana-4049c6a791ce349d652c2c770c70d9f1a5909f28.tar.bz2
mana-4049c6a791ce349d652c2c770c70d9f1a5909f28.tar.xz
mana-4049c6a791ce349d652c2c770c70d9f1a5909f28.zip
ixed an error in Davids last commit (couldn't compile that way).
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/sound.cpp b/src/sound.cpp
index 9e265b52..063195ae 100644
--- a/src/sound.cpp
+++ b/src/sound.cpp
@@ -133,8 +133,9 @@ void Sound::playMusic(const std::string &filename, int loop)
if (mMusic != NULL) {
stopMusic();
}
-
- std::string path = mResourceManager->getPath("music/" + filename);
+
+ ResourceManager *resman = ResourceManager::getInstance();
+ std::string path = resman->getPath("music/" + filename);
logger->log("Sound::startMusic() Playing \"%s\" %i times", path.c_str(),
loop);