Prevent pointless warning about missing sound file

svn-id: r5768
This commit is contained in:
Travis Howell 2002-12-01 08:02:35 +00:00
parent b2049c63da
commit 5f0aa9c15a

View File

@ -94,6 +94,7 @@ void SimonSound::readSfxFile(const char *filename, const char *gameDataPath)
file->open(filename, gameDataPath);
if (file->isOpen() == false) {
if (atoi(filename + 6) != 1)
warning("readSfxFile: Cannot load sfx file %s", filename);
return;
}