--- 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;