diff --git a/src/sound_plib.cpp b/src/sound_plib.cpp index bb27817ff..03b8a9be4 100644 --- a/src/sound_plib.cpp +++ b/src/sound_plib.cpp @@ -55,7 +55,7 @@ void MusicPlib::update() } //----------------------------------------------------------------------------- -bool MusicPlib::load(const char* filename) +bool MusicPlib::load(const std::string& filename) { m_filename= loader->getPath(filename); return true; diff --git a/src/sound_plib.hpp b/src/sound_plib.hpp index 21f4dfed0..5e61dcd40 100644 --- a/src/sound_plib.hpp +++ b/src/sound_plib.hpp @@ -47,7 +47,7 @@ public: virtual void update(); - virtual bool load(const char* filename); + virtual bool load(const std::string &filename); virtual bool playMusic(); virtual bool stopMusic();