From 3b022084c6d661276b3a5f5151e2bfbf6201cb98 Mon Sep 17 00:00:00 2001 From: Thorbjørn Lindeijer Date: Fri, 10 Feb 2012 22:23:27 +0100 Subject: Arbitrary small code cleanups Reviewed-by: Erik Schilling --- 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 4f562833..e8348a40 100644 --- a/src/sound.cpp +++ b/src/sound.cpp @@ -254,7 +254,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