Fix typo
authorunc0rr
Mon, 04 Jun 2007 21:29:05 +0000
changeset 537 4d2e60623e44
parent 536 33538aadb4e7
child 538 74219eadab5e
Fix typo
hedgewars/GSHandlers.inc
--- a/hedgewars/GSHandlers.inc	Mon Jun 04 21:15:24 2007 +0000
+++ b/hedgewars/GSHandlers.inc	Mon Jun 04 21:29:05 2007 +0000
@@ -1199,7 +1199,7 @@
    th:= CurrentTeam^.CurrHedgehog;
    repeat
      CurrentTeam^.CurrHedgehog:= Succ(CurrentTeam^.CurrHedgehog) mod (cMaxHHIndex + 1);
-   until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) or (Gear^.Pos = th);
+   until (CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear <> nil) or (CurrentTeam^.CurrHedgehog = th);
 
    HHGear:= CurrentTeam^.Hedgehogs[CurrentTeam^.CurrHedgehog].Gear;
    HHGear^.State:= State;