hedgewars/uGearsHedgehog.pas
changeset 9579 1f20cc6a642a
parent 9539 ab44d44a6177
child 9664 1e528c58e41d
--- a/hedgewars/uGearsHedgehog.pas	Thu Oct 24 21:18:22 2013 -0400
+++ b/hedgewars/uGearsHedgehog.pas	Sat Oct 26 13:58:49 2013 -0400
@@ -116,7 +116,7 @@
     // Try again in the next slot
     if CurAmmoType = prevAmmo then
         begin
-        if slot >= cMaxSlotIndex then slot:= 0 else inc(slot);
+        if slot < cMaxSlotIndex then inc(slot);
         HHGear^.MsgParam:= slot;
         ChangeAmmo(HHGear)
         end