diff options
author | peter1138 <peter1138@openttd.org> | 2007-07-17 06:56:09 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2007-07-17 06:56:09 +0000 |
commit | 306c21d6c94ab490cff2e51b8ecff2ab57c780ed (patch) | |
tree | 13a413e8bc2a7e93ab6c7c67d3be49ae4bd5178c /src/vehicle.cpp | |
parent | 3dd6362bb8a07e36eaf621bdf5c256087fbbf8c8 (diff) | |
download | openttd-306c21d6c94ab490cff2e51b8ecff2ab57c780ed.tar.xz |
(svn r10603) -Codechange: avoid direct access to _engine_info
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index b2d1ccdac..bcbeca3c7 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -2723,7 +2723,7 @@ const Livery *GetEngineLivery(EngineID engine_type, PlayerID player, EngineID pa scheme = LS_FREIGHT_WAGON; } } else { - bool is_mu = HASBIT(_engine_info[engine_type].misc_flags, EF_RAIL_IS_MU); + bool is_mu = HASBIT(EngInfo(engine_type)->misc_flags, EF_RAIL_IS_MU); switch (rvi->engclass) { default: NOT_REACHED(); |