diff src/order_cmd.cpp @ 5922:2ab303172d09 draft

(svn r8550) -Fix Building a vehicle does not involve allocating orders, so do not check whether orders could be allocated
author tron <tron@openttd.org>
date Sat, 03 Feb 2007 09:05:43 +0000
parents f4881d5663d1
children 1bc5a8fab0c9
line wrap: on
line diff
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -337,7 +337,7 @@
 
 	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.. */