hedgewars/GSHandlers.inc
changeset 7270 93e92e82d5c8
parent 7268 3a61c53346a8
child 7272 71df899c4163
--- a/hedgewars/GSHandlers.inc	Sat Jun 23 22:44:11 2012 +0400
+++ b/hedgewars/GSHandlers.inc	Sat Jun 23 21:37:47 2012 -0400
@@ -2768,7 +2768,7 @@
             CurrentTeam^.CurrHedgehog := Succ(CurrentTeam^.CurrHedgehog) mod (CurrentTeam^.HedgehogsNumber);
         until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) and (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear^.Damage = 0);
 
-        CurrentHedgehog := @CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog];
+        SwitchCurrentHedgehog(@CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog]);
         AmmoMenuInvalidated:= true; 
 
         HHGear := CurrentHedgehog^.Gear;