added ignoring remaining level chunks after chunks with wrong size
authorHolger Schemel <info@artsoft.org>
Sat, 27 Aug 2022 09:02:14 +0000 (11:02 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 27 Aug 2022 09:23:35 +0000 (11:23 +0200)
src/files.c

index e86364db9f077fd4b678703a0394069b25e58c24..6839934a166cb2252154a2ad45024865a69e1f86 100644 (file)
@@ -3606,6 +3606,8 @@ static void LoadLevelFromFileInfo_RND(struct LevelInfo *level,
        {
          Warn("wrong size (%d) of chunk '%s' in level file '%s'",
               chunk_size, chunk_name, filename);
        {
          Warn("wrong size (%d) of chunk '%s' in level file '%s'",
               chunk_size, chunk_name, filename);
+
+         break;
        }
       }
     }
        }
       }
     }