hedgewars/uCollisions.pas
changeset 15696 f5b127ee3196
parent 15678 c34cad72cd85
child 15744 498c1482dec2
--- a/hedgewars/uCollisions.pas	Sun Jul 05 14:53:44 2020 +0200
+++ b/hedgewars/uCollisions.pas	Sun Jul 05 18:37:29 2020 +0300
@@ -375,9 +375,9 @@
 function UpdateHitOrder(Gear: PGear; Order: LongInt; Global: boolean): boolean; inline;
 begin
     if Global then
-        UpdateHitOrder := UpdateHitOrderImpl(@ordera, Gear, Order)
+        UpdateHitOrder := UpdateHitOrderImpl(@globalordera, Gear, Order)
     else
-        UpdateHitOrder := UpdateHitOrderImpl(@globalordera, Gear, Order)
+        UpdateHitOrder := UpdateHitOrderImpl(@ordera, Gear, Order)
 end;
 
 function UpdateGlobalHitOrder(Gear: PGear; Order: LongInt): boolean; inline;