hedgewars/uVariables.pas
changeset 16049 9be943326d9c
parent 16003 8bb07b0f50ca
child 16051 2003b466b279
--- a/hedgewars/uVariables.pas	Wed Aug 28 13:36:52 2024 +0200
+++ b/hedgewars/uVariables.pas	Wed Aug 28 13:41:51 2024 +0200
@@ -2592,6 +2592,8 @@
     Land: TCollisionArray;
     LandPixels: TLandArray;
     LandDirty: TDirtyTag;
+    Flakes: TGearPackArray;
+    FlakesCount: Longword;
     hasBorder: boolean;
     hasGirders: boolean;
     playHeight, playWidth, leftX, rightX, topY: LongInt;  // idea is that a template can specify height/width.  Or, a map, a height/width by the dimensions of the image.  If the map has pixels near top of image, it triggers border.
@@ -3122,6 +3124,8 @@
     SDLWindow:= nil;
     SDLGLContext:= nil;
 
+    FlakesCount:= 0;
+
     for i:= Low(ClansArray) to High(ClansArray) do
         begin
         ClansArray[i]:= nil;