hedgewars/uGearsList.pas
changeset 11544 c22d292e7266
parent 11537 bf86c6cb9341
child 11546 34a0181d5be5
--- a/hedgewars/uGearsList.pas	Mon Feb 08 14:58:36 2016 +0300
+++ b/hedgewars/uGearsList.pas	Tue Feb 09 14:40:06 2016 +0300
@@ -150,7 +150,8 @@
     AddFileLog('Attempted to remove Gear #'+inttostr(Gear^.uid)+' from the list twice.');
     exit
     end;
-if checkFails((Gear = nil) or (curHandledGear = nil) or (Gear = curHandledGear), 'You''re doing it wrong', true) then exit;
+    
+checkFails((Gear = nil) or (curHandledGear = nil) or (Gear = curHandledGear), 'You''re doing it wrong', true);
 
 if Gear^.NextGear <> nil then
     Gear^.NextGear^.PrevGear:= Gear^.PrevGear;