diff src/engine.cpp @ 17891:9728faf89121 draft

(svn r22690) -Fix: [NewGRF] Aircrafts defined with IDs above the default aircrafts always defaulted to passenger cargo.
author frosch <frosch@openttd.org>
date Wed, 27 Jul 2011 19:38:43 +0000 (2011-07-27)
parents 99d6211b8c36
children 4d6b4b6d6069
line wrap: on
line diff
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -89,6 +89,8 @@
 		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;