diff options
author | glx <glx@openttd.org> | 2007-11-15 00:13:12 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2007-11-15 00:13:12 +0000 |
commit | f28723830fc92c4ef2235739a1dd85d686235211 (patch) | |
tree | f6fd15de0b2710a8555aa567964b330507cc7b71 /src/newgrf_engine.cpp | |
parent | f0915957d48278cb03f70f02f7d48c248104df63 (diff) | |
download | openttd-f28723830fc92c4ef2235739a1dd85d686235211.tar.xz |
(svn r11431) -Codechange: [NewGRF] Add support for changing rail vehicle user-defined bit mask (prop 25) via callback 36
Diffstat (limited to 'src/newgrf_engine.cpp')
-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 2c0090da9..4adf8d82d 100644 --- a/src/newgrf_engine.cpp +++ b/src/newgrf_engine.cpp @@ -548,7 +548,7 @@ static uint32 VehicleGetVariable(const ResolverObject *object, byte variable, by cargo_classes |= GetCargo(u->cargo_type)->classes; common_cargos[u->cargo_type]++; - if (v->type == VEH_TRAIN) user_def_data |= RailVehInfo(u->engine_type)->user_def_data; + if (v->type == VEH_TRAIN) user_def_data |= u->u.rail.user_def_data; common_subtypes[u->cargo_subtype]++; } |