summaryrefslogtreecommitdiff
path: root/order_cmd.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-26 17:16:51 +0000
committertruelight <truelight@openttd.org>2006-08-26 17:16:51 +0000
commitc6f4f954388142a1d5b85993be5574710865ac98 (patch)
tree6f8b3fc024528fc088a38079d9fcf7fc6dd59e45 /order_cmd.c
parent39ae8d29e1ad70a40a19722469e7cb3a7a1c44a0 (diff)
downloadopenttd-c6f4f954388142a1d5b85993be5574710865ac98.tar.xz
(svn r6145) -Codechange: added OrderID to indicate Order indexes out of the pool
Diffstat (limited to 'order_cmd.c')
-rw-r--r--order_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/order_cmd.c b/order_cmd.c
index fb6d26a99..68ed40e5f 100644
--- a/order_cmd.c
+++ b/order_cmd.c
@@ -118,7 +118,7 @@ static Order *AllocateOrder(void)
* TODO - This is just a temporary stage, this will be removed. */
for (order = GetOrder(0); order != NULL; order = (order->index + 1 < GetOrderPoolSize()) ? GetOrder(order->index + 1) : NULL) {
if (!IsValidOrder(order)) {
- uint index = order->index;
+ OrderID index = order->index;
memset(order, 0, sizeof(*order));
order->index = index;