diff options
author | tron <tron@openttd.org> | 2007-02-03 09:05:43 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2007-02-03 09:05:43 +0000 |
commit | c326ff37956552f883e6d6f4dc6e2fb9f61e40d0 (patch) | |
tree | 26d91439e6a9b8f23752f33cabd1ef990dec8c60 /src/train_cmd.cpp | |
parent | 981833751ae853f27e492dc0197f1239d7ed580c (diff) | |
download | openttd-c326ff37956552f883e6d6f4dc6e2fb9f61e40d0.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/train_cmd.cpp')
-rw-r--r-- | src/train_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index 1b6c5c80e..3eccd58ec 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -776,7 +776,7 @@ int32 CmdBuildRailVehicle(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) memset(&vl, 0, sizeof(vl)); - if (!AllocateVehicles(vl, num_vehicles) || IsOrderPoolFull()) + if (!AllocateVehicles(vl, num_vehicles)) return_cmd_error(STR_00E1_TOO_MANY_VEHICLES_IN_GAME); v = vl[0]; |