--- a/hedgewars/GSHandlers.inc Mon Jun 04 21:29:05 2007 +0000
+++ b/hedgewars/GSHandlers.inc Wed Jun 06 21:27:12 2007 +0000
@@ -1177,10 +1177,11 @@
HHGear:= PHedgehog(Gear^.Hedgehog)^.Gear;
Msg:= Gear^.Message and not gm_Switch;
DeleteGear(Gear);
- OnUsedAmmo(PHedgehog(Gear^.Hedgehog)^);
+ OnUsedAmmo(PHedgehog(HHGear^.Hedgehog)^);
+ ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
HHGear:= CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear;
- ApplyAmmoChanges(PHedgehog(Gear^.Hedgehog)^);
+ ApplyAmmoChanges(PHedgehog(HHGear^.Hedgehog)^);
HHGear^.Message:= Msg;
exit
end;