Browse Source

Forgot to add the { } to the now 2-line if-block.

Silly me.
cib 13 years ago
parent
commit
4ea14cf52a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Core/Contents/Source/PolySound.cpp

+ 2 - 1
Core/Contents/Source/PolySound.cpp

@@ -436,9 +436,10 @@ ALuint Sound::loadWAV(const String& fileName) {
 	
 	
 		// Open for binary reading
 		// Open for binary reading
 		f = OSBasics::open(fileName.c_str(), "rb");
 		f = OSBasics::open(fileName.c_str(), "rb");
-		if (!f)
+		if (!f) {
 			soundError("LoadWav: Could not load wav from " + fileName);
 			soundError("LoadWav: Could not load wav from " + fileName);
 			return buffer;
 			return buffer;
+		}
 		
 		
 		// buffers
 		// buffers
 		char magic[5];
 		char magic[5];