hedgewars/uCollisions.pas
changeset 5572 47cc28299baa
parent 5569 8313952b2811
child 5750 6bbf7aee2cdf
--- a/hedgewars/uCollisions.pas	Mon Aug 15 10:16:18 2011 -0400
+++ b/hedgewars/uCollisions.pas	Mon Aug 15 20:18:18 2011 +0400
@@ -84,8 +84,9 @@
 if (Count > (MAXRECTSINDEX-20)) then
     begin
     t:= GearsList;
-    while (t <> nil) and (t^.Kind <> gtMine) do t:= t^.NextGear;
-    if (t <> nil) and (t^.Kind = gtMine) then DeleteGear(t)
+    while (t <> nil) and (t^.Kind <> gtMine) do 
+        t:= t^.NextGear;
+    if (t <> nil) then DeleteGear(t)
     end;
 end;