fix hitorder dispatch
authoralfadur
Sun, 05 Jul 2020 18:37:29 +0300
changeset 15696 f5b127ee3196
parent 15695 74ede02bc882
child 15697 c9a7ee0e3265
fix hitorder dispatch
hedgewars/uCollisions.pas
--- 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;