Просмотр исходного кода

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

Silly me.
cib 13 лет назад
Родитель
Сommit
4ea14cf52a
1 измененных файлов с 2 добавлено и 1 удалено
  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
 		f = OSBasics::open(fileName.c_str(), "rb");
-		if (!f)
+		if (!f) {
 			soundError("LoadWav: Could not load wav from " + fileName);
 			return buffer;
+		}
 		
 		// buffers
 		char magic[5];