summaryrefslogtreecommitdiff
path: root/src/sound.cpp
diff options
context:
space:
mode:
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;