diff options
Diffstat (limited to 'order_cmd.c')
-rw-r--r-- | order_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/order_cmd.c b/order_cmd.c index fc91034be..2820e88bd 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -830,8 +830,8 @@ void RestoreVehicleOrders(const Vehicle* v, const BackuppedOrders* bak) int32 CmdRestoreOrderIndex(int x, int y, uint32 flags, uint32 p1, uint32 p2) { Vehicle *v; - OrderID cur_ord = p2 & 0xFFFF; - uint16 serv_int = p2 >> 16; + OrderID cur_ord = GB(p2, 0, 16); + uint16 serv_int = GB(p2, 16, 16); if (!IsVehicleIndex(p1)) return CMD_ERROR; |