hedgewars/uGearsHandlersRope.pas
changeset 14674 4aec7d17ef7d
parent 14303 6015b74eea55
child 15929 128ace913837
--- a/hedgewars/uGearsHandlersRope.pas	Mon Jan 21 20:17:44 2019 +0100
+++ b/hedgewars/uGearsHandlersRope.pas	Mon Jan 21 21:06:55 2019 +0100
@@ -417,9 +417,9 @@
     if (Gear^.State and gstAttacked) = 0 then
         begin
         OnUsedAmmo(HHGear^.Hedgehog^);
-        Gear^.State := Gear^.State or gstAttacked
+        Gear^.State := Gear^.State or gstAttacked;
+        ApplyAmmoChanges(HHGear^.Hedgehog^);
         end;
-    ApplyAmmoChanges(HHGear^.Hedgehog^)
 end;
 
 procedure doStepRopeAttach(Gear: PGear);