Changeset - r18111:ddb48f8dea5e
[Not reviewed]
master
0 1 0
frosch - 13 years ago 2011-09-19 19:22:18
frosch@openttd.org
(svn r22946) -Fix [FS#4781]: [NewGRF] Crash when accessing vehicle var 44 for a non-front aircraft.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/newgrf_engine.cpp
Show inline comments
 
@@ -596,7 +596,7 @@ static uint32 VehicleGetVariable(const R
 
			return v->grf_cache.company_information;
 

	
 
		case 0x44: // Aircraft information
 
			if (v->type != VEH_AIRCRAFT) return UINT_MAX;
 
			if (v->type != VEH_AIRCRAFT || !Aircraft::From(v)->IsNormalAircraft()) return UINT_MAX;
 

	
 
			{
 
				const Vehicle *w = v->Next();
0 comments (0 inline, 0 general)