diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-04 19:44:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-04 19:44:48 +0300 |
commit | 46d35da5ec9fb59d2bf61fc39d36ee48b51509ba (patch) | |
tree | 994cf016f1bf6c7ac22aea6694b60b178c402d1f /src/sound.cpp | |
parent | e70591bfb338f774570661276d02d9bc8731ae83 (diff) | |
download | plus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.gz plus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.bz2 plus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.xz plus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.zip |
Replcae find to compare if need.
Diffstat (limited to 'src/sound.cpp')
-rw-r--r-- | src/sound.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.cpp b/src/sound.cpp index e3b1a9bcc..d490898c8 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -269,7 +269,7 @@ void Sound::playSfx(const std::string &path, int x, int y) return; std::string tmpPath; - if (!path.find("sfx/")) + if (!path.compare(0, 4, "sfx/")) tmpPath = path; else tmpPath = paths.getValue("sfx", "sfx/") + path; |