diff options
author | truelight <truelight@openttd.org> | 2004-12-29 08:42:30 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-29 08:42:30 +0000 |
commit | fe08f457bcfbe203b6dd123074cc0d94142df6fa (patch) | |
tree | 7baa43e17a3e6a3641648c6aec230e73bbbf98f2 | |
parent | e24c0ec9dfa51a72194698ec5ea8b9e5191c68cf (diff) | |
download | openttd-fe08f457bcfbe203b6dd123074cc0d94142df6fa.tar.xz |
(svn r1295) -Fix: [ 1092499 ] Copy order was fucked up, because memcpy said:
sizeof(uint16), instead of sizeof(Order).
-rw-r--r-- | order_cmd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c index 4627dc679..3e4aed7ee 100644 --- a/order_cmd.c +++ b/order_cmd.c @@ -287,7 +287,7 @@ int32 CmdCloneOrder(int x, int y, uint32 flags, uint32 p1, uint32 p2) dst->schedule_ptr = _ptr_to_next_order; dst->num_orders = src->num_orders; _ptr_to_next_order += src->num_orders + 1; - memcpy(dst->schedule_ptr, src->schedule_ptr, (src->num_orders + 1) * sizeof(uint16)); + memcpy(dst->schedule_ptr, src->schedule_ptr, (src->num_orders + 1) * sizeof(Order)); InvalidateWindow(WC_VEHICLE_ORDERS, dst->index); |