summaryrefslogtreecommitdiff
path: root/src/order_cmd.cpp
diff options
context:
space:
mode:
authortron <tron@openttd.org>2007-02-03 09:05:43 +0000
committertron <tron@openttd.org>2007-02-03 09:05:43 +0000
commitcf5514ce8dc733f3f3afe6f6c69f8e0173df370c (patch)
tree26d91439e6a9b8f23752f33cabd1ef990dec8c60 /src/order_cmd.cpp
parente2ad9abbcae8dc14f699cdf3775a4bcbb1da8a5a (diff)
downloadopenttd-cf5514ce8dc733f3f3afe6f6c69f8e0173df370c.tar.xz
(svn r8550) -Fix
Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
Diffstat (limited to 'src/order_cmd.cpp')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 8b6fb7e50..7ee0a0901 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -337,7 +337,7 @@ int32 CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
if (sel_ord > v->num_orders) return CMD_ERROR;
- if (IsOrderPoolFull()) return_cmd_error(STR_8831_NO_MORE_SPACE_FOR_ORDERS);
+ if (!HasOrderPoolFree(1)) return_cmd_error(STR_8831_NO_MORE_SPACE_FOR_ORDERS);
/* XXX - This limit is only here because the backuppedorders can't
* handle any more then this.. */