summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-04 19:44:48 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-04 19:44:48 +0300
commit46d35da5ec9fb59d2bf61fc39d36ee48b51509ba (patch)
tree994cf016f1bf6c7ac22aea6694b60b178c402d1f /src/sound.cpp
parente70591bfb338f774570661276d02d9bc8731ae83 (diff)
downloadmanaplus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.gz
manaplus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.bz2
manaplus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.tar.xz
manaplus-46d35da5ec9fb59d2bf61fc39d36ee48b51509ba.zip
Replcae find to compare if need.
Diffstat (limited to 'src/sound.cpp')
-rw-r--r--src/sound.cpp2
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;