summaryrefslogtreecommitdiff
path: root/order.h
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-16 14:42:53 +0000
committertruelight <truelight@openttd.org>2005-01-16 14:42:53 +0000
commit07647737d5d52cb548662ffbec4eca3514090b18 (patch)
tree6a56912dfd4ec0a7d3c46aa7b8cd50edb2d28031 /order.h
parent8493f68c96d9dbc4deaf0dac53c80a04511a2b70 (diff)
downloadopenttd-07647737d5d52cb548662ffbec4eca3514090b18.tar.xz
(svn r1544) -Fix: SwapOrder did not use AssignOrder, which caused the saveroutine to
crash from time to time -Codechange: added const before 'Order *' where possible
Diffstat (limited to 'order.h')
-rw-r--r--order.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/order.h b/order.h
index dc7da1fa7..07fd95e4a 100644
--- a/order.h
+++ b/order.h
@@ -74,7 +74,7 @@ static inline Order *GetOrder(uint index)
static inline bool HasOrderPoolFree(uint amount)
{
- Order *order;
+ const Order *order;
FOR_ALL_ORDERS(order)
if (order->type == OT_NOTHING)