hedgewars/uCollisions.pas
changeset 13168 0e7eddfbce8a
parent 12898 8a40ce061d94
child 13469 f1d349a52bc7
--- a/hedgewars/uCollisions.pas	Sun Mar 11 21:38:08 2018 +0100
+++ b/hedgewars/uCollisions.pas	Mon Mar 12 00:59:47 2018 +0100
@@ -291,7 +291,7 @@
 var i: LongInt;
 begin
 UpdateHitOrder:= true;
-for i:= 0 to cMaxGearHitOrderInd do
+for i:= 0 to ordera.Count - 1 do
     if ordera.ar[i] = Gear then
         begin
         if Order <= ordera.order[i] then UpdateHitOrder:= false;