From 4049c6a791ce349d652c2c770c70d9f1a5909f28 Mon Sep 17 00:00:00 2001 From: Philipp Sehmisch Date: Mon, 14 Jan 2008 10:48:13 +0000 Subject: ixed an error in Davids last commit (couldn't compile that way). --- src/sound.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-70-g09d2