hedgewars/uVariables.pas
branchtransitional_engine
changeset 16051 2003b466b279
parent 16004 2146cb7be36f
parent 16049 9be943326d9c
--- a/hedgewars/uVariables.pas	Wed Aug 28 15:31:51 2024 +0200
+++ b/hedgewars/uVariables.pas	Wed Aug 28 15:34:49 2024 +0200
@@ -2590,6 +2590,8 @@
 
 var
     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.
@@ -3120,6 +3122,8 @@
     SDLWindow:= nil;
     SDLGLContext:= nil;
 
+    FlakesCount:= 0;
+
     for i:= Low(ClansArray) to High(ClansArray) do
         begin
         ClansArray[i]:= nil;