diff options
author | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-14 10:48:13 +0000 |
---|---|---|
committer | Philipp Sehmisch <tmw@crushnet.org> | 2008-01-14 10:48:13 +0000 |
commit | 4049c6a791ce349d652c2c770c70d9f1a5909f28 (patch) | |
tree | a41f7dafca2b54f9b4f1ff71f291a743f7d29145 /src | |
parent | 524d2d23d632907d9158de93a7237c853ceef241 (diff) | |
download | mana-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')
-rw-r--r-- | src/sound.cpp | 5 |
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); |