added ignoring remaining level chunks after chunks with wrong size
[rocksndiamonds.git] / 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);
+
+         break;
        }
       }
     }