--- 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;