diff options
author | frosch <frosch@openttd.org> | 2010-05-05 16:55:43 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-05-05 16:55:43 +0000 |
commit | cf0a20863f3caaffa794f69d4868653c8cf91516 (patch) | |
tree | 6fc645c4a7101144fdf99ee30944f81fa02218bb /src | |
parent | d031034789330842a113186f389a313a56349027 (diff) | |
download | openttd-cf0a20863f3caaffa794f69d4868653c8cf91516.tar.xz |
(svn r19761) -Fix: [NewGRF] Vehicle var 43 missed AI information in purchase list.
Diffstat (limited to 'src')
-rw-r--r-- | src/newgrf_engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/newgrf_engine.cpp b/src/newgrf_engine.cpp index 3ae9244f1..ff22015dc 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -484,7 +484,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by if (v == NULL) { /* Vehicle does not exist, so we're in a purchase list */ switch (variable) { - case 0x43: return _current_company | (LiveryHelper(object->u.vehicle.self_type, NULL) << 24); // Owner information + case 0x43: return _current_company | (Company::IsValidAiID(_current_company) ? 0x10000 : 0) | (LiveryHelper(object->u.vehicle.self_type, NULL) << 24); // Owner information case 0x46: return 0; // Motion counter case 0x47: { // Vehicle cargo info const Engine *e = Engine::Get(object->u.vehicle.self_type); |