summaryrefslogtreecommitdiff
path: root/aircraft_cmd.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-01-18 14:12:26 +0000
committerbjarni <bjarni@openttd.org>2006-01-18 14:12:26 +0000
commitb87b5f1187b3b31b9085f008017a65693654b67b (patch)
treeaa2503d834088b8d7eb5a8105c69d71cbb815c45 /aircraft_cmd.c
parent8403f2bd336a95c2d907ed1c6b2a2d47a5d940bf (diff)
downloadopenttd-b87b5f1187b3b31b9085f008017a65693654b67b.tar.xz
(svn r3402) -Fix: [building/cloning] added a string telling if build failed due to not being able to build a vehicle. Triggered when cloning a retired design
Diffstat (limited to 'aircraft_cmd.c')
-rw-r--r--aircraft_cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/aircraft_cmd.c b/aircraft_cmd.c
index 668174314..5a5392c6b 100644
--- a/aircraft_cmd.c
+++ b/aircraft_cmd.c
@@ -141,7 +141,7 @@ int32 CmdBuildAircraft(int x, int y, uint32 flags, uint32 p1, uint32 p2)
const AircraftVehicleInfo *avi;
Engine *e;
- if (!IsEngineBuildable(p1, VEH_Aircraft)) return CMD_ERROR;
+ if (!IsEngineBuildable(p1, VEH_Aircraft)) return_cmd_error(STR_ENGINE_NOT_BUILDABLE);
value = EstimateAircraftCost(p1);