From 46d35da5ec9fb59d2bf61fc39d36ee48b51509ba Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 4 Apr 2011 19:44:48 +0300 Subject: Replcae find to compare if need. --- src/sound.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sound.cpp') 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; -- cgit v1.2.3-70-g09d2