# HG changeset patch # User unC0Rr # Date 1739806704 -3600 # Node ID 278533359a93e4f230ca388c8735158e20238973 # Parent cb472e3d0dd41e30e1dc50c0475ef03a1e5bcab7 Fix segfault diff -r cb472e3d0dd4 -r 278533359a93 hedgewars/uLand.pas --- a/hedgewars/uLand.pas Mon Feb 10 09:52:32 2025 -0500 +++ b/hedgewars/uLand.pas Mon Feb 17 16:38:24 2025 +0100 @@ -356,7 +356,6 @@ end; function SelectTemplate: shortstring; -var l: LongInt; begin SelectTemplate:= ''; if (cReducedQuality and rqLowRes) <> 0 then @@ -365,7 +364,7 @@ begin if (cTemplateFilter = 0) and (cMapGen <> mgMaze) then begin - l:= getRandom(5) + 1; + cTemplateFilter:= getRandom(5) + 1; end else getRandom(1);