# HG changeset patch # User nemo # Date 1368727353 14400 # Node ID 901ee9a8a3b4d584bb8a92becb2d549089c9b5d2 # Parent 2e4cf893c0602b440a682f17bf76b711234827c0 Yeah, this isn't safe either. Caused bug #629 - removing. diff -r 2e4cf893c060 -r 901ee9a8a3b4 hedgewars/uAmmos.pas --- a/hedgewars/uAmmos.pas Thu May 16 17:33:25 2013 +0200 +++ b/hedgewars/uAmmos.pas Thu May 16 14:02:33 2013 -0400 @@ -279,7 +279,7 @@ //SwitchNotHeldAmmo(Hedgehog); if CurAmmoType = amKnife then LoadHedgehogHat(Hedgehog, Hedgehog.Hat); if CurAmmoGear <> nil then - CurAmmoType:= CurAmmoGear^.AmmoType + SetWeapon(CurAmmoGear^.AmmoType) else CurAmmoType:= amNothing; end end