diff --git a/src/sound/s_doomsound.cpp b/src/sound/s_doomsound.cpp index 40448275b6..c8cbd4bb8b 100644 --- a/src/sound/s_doomsound.cpp +++ b/src/sound/s_doomsound.cpp @@ -192,7 +192,9 @@ static FileReader OpenMusic(const char* musicname) if (!FileExists(musicname)) { int lumpnum; - if ((lumpnum = fileSystem.CheckNumForFullName(musicname, true, ns_music)) == -1) + lumpnum = fileSystem.CheckNumForFullName(musicname); + if (lumpnum == -1) lumpnum = fileSystem.CheckNumForName(musicname, ns_music); + if (lumpnum == -1) { Printf("Music \"%s\" not found\n", musicname); }