hedgewars/uGearsList.pas
changeset 11537 bf86c6cb9341
parent 11473 2f6f8baa2a97
child 11544 c22d292e7266
--- a/hedgewars/uGearsList.pas	Sun Jan 24 00:02:57 2016 +0100
+++ b/hedgewars/uGearsList.pas	Sun Jan 31 16:07:14 2016 +0300
@@ -150,7 +150,7 @@
     AddFileLog('Attempted to remove Gear #'+inttostr(Gear^.uid)+' from the list twice.');
     exit
     end;
-TryDo((Gear = nil) or (curHandledGear = nil) or (Gear = curHandledGear), 'You''re doing it wrong', true);
+if checkFails((Gear = nil) or (curHandledGear = nil) or (Gear = curHandledGear), 'You''re doing it wrong', true) then exit;
 
 if Gear^.NextGear <> nil then
     Gear^.NextGear^.PrevGear:= Gear^.PrevGear;