summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-23 13:30:02 +0000
committertruelight <truelight@openttd.org>2005-01-23 13:30:02 +0000
commitb586a890f7926644746f908603277ca0dd23458d (patch)
treecef419291ca2e46b12addb2858f75232a2f21306 /order_cmd.c
parentc857bfa12a87b9dbd226f28d5d24282113bd253b (diff)
downloadopenttd-b586a890f7926644746f908603277ca0dd23458d.tar.xz
(svn r1612) -Fix: made sure that ->next pointers are set to NULL
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/order_cmd.c b/order_cmd.c
index f1d4cce2d..b0e638cb5 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -89,6 +89,7 @@ static Order *AllocateOrder(void)
uint index = order->index;
memset(order, 0, sizeof(Order));
order->index = index;
+ order->next = NULL;
return order;
}
}