summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-27 19:38:43 +0000
committerfrosch <frosch@openttd.org>2011-07-27 19:38:43 +0000
commit5e0bf4ada81e5aaf378b7de03dd498c63e32c627 (patch)
treebad6999a74852892a0f3d6d41a32f6be5673fc0e /src
parent42804a8605d4c81cfba8f1c8da0a8f87a25c99ed (diff)
downloadopenttd-5e0bf4ada81e5aaf378b7de03dd498c63e32c627.tar.xz
(svn r22690) -Fix: [NewGRF] Aircrafts defined with IDs above the default aircrafts always defaulted to passenger cargo.
Diffstat (limited to 'src')
-rw-r--r--src/engine.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index a968d5263..42454e401 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -89,6 +89,8 @@ Engine::Engine(VehicleType type, EngineID base)
this->info.base_life = 0xFF;
/* Set road vehicle tractive effort to the default value */
if (type == VEH_ROAD) this->u.road.tractive_effort = 0x4C;
+ /* Aircraft must have CT_INVALID as default, as there is no property */
+ if (type == VEH_AIRCRAFT) this->info.cargo_type = CT_INVALID;
/* Set visual effect to the default value */
switch (type) {
case VEH_TRAIN: this->u.rail.visual_effect = VE_DEFAULT; break;