fixed bug with checking music only for current instead of all levels
authorHolger Schemel <info@artsoft.org>
Wed, 12 Apr 2023 11:46:58 +0000 (13:46 +0200)
committerHolger Schemel <info@artsoft.org>
Wed, 12 Apr 2023 11:46:58 +0000 (13:46 +0200)
src/files.c

index 363e033ecc9da80c014a910ec30146978ca8b8c0..a22098da1628d872cd5b9d5692b2ba9cd58f90e0 100644 (file)
@@ -12943,7 +12943,7 @@ static boolean checkLevelSetHasMusic_NoConf(void)
 
   for (i = leveldir_current->first_level;
        i <= leveldir_current->last_level; i++)
-    if (levelset.music[level_nr] == MUS_UNDEFINED)
+    if (levelset.music[i] == MUS_UNDEFINED)
       return TRUE;
 
   return FALSE;