--- a/hedgewars/uGearsHandlersMess.pas Wed Apr 20 15:35:48 2022 +0200
+++ b/hedgewars/uGearsHandlersMess.pas Tue Apr 26 14:35:21 2022 -0400
@@ -2201,7 +2201,7 @@
for t:= 0 to Pred(TeamsCount) do
with TeamsArray[t]^ do
for i:= 0 to cMaxHHIndex do
- if (Hedgehogs[i].Gear <> nil) and (Hedgehogs[i].Effects[heFrozen] = 0) then
+ if (not Hedgehogs[i].Unplaced) and (Hedgehogs[i].Gear <> nil) and (Hedgehogs[i].Effects[heFrozen] = 0) and ((Hedgehogs[i].Gear^.State and gstInvisible) = 0) then
begin
tmpG:= Hedgehogs[i].Gear;
tX:=Gear^.X-tmpG^.X;