summaryrefslogtreecommitdiff
path: root/src/ship_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/ship_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/ship_cmd.cpp')
-rw-r--r--src/ship_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ship_cmd.cpp b/src/ship_cmd.cpp
index 30ecac1a2..03c2efbb4 100644
--- a/src/ship_cmd.cpp
+++ b/src/ship_cmd.cpp
@@ -835,7 +835,7 @@ int32 CmdBuildShip(TileIndex tile, uint32 flags, uint32 p1, uint32 p2)
v = AllocateVehicle();
unit_num = HASBIT(p2, 0) ? 0 : GetFreeUnitNumber(VEH_Ship);
- if (v == NULL || IsOrderPoolFull() || unit_num > _patches.max_ships)
+ if (v == NULL || unit_num > _patches.max_ships)
return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME);
if (flags & DC_EXEC) {