diff options
Diffstat (limited to 'src/engine_gui.cpp')
-rw-r--r-- | src/engine_gui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/engine_gui.cpp b/src/engine_gui.cpp index 08186b822..2f8307313 100644 --- a/src/engine_gui.cpp +++ b/src/engine_gui.cpp @@ -19,7 +19,7 @@ static StringID GetEngineCategoryName(EngineID engine) { if (engine < NUM_TRAIN_ENGINES) { - switch (GetEngine(engine)->railtype) { + switch (RailVehInfo(engine)->railtype) { case RAILTYPE_RAIL: return STR_8102_RAILROAD_LOCOMOTIVE; case RAILTYPE_ELECTRIC: return STR_8102_RAILROAD_LOCOMOTIVE; case RAILTYPE_MONO: return STR_8106_MONORAIL_LOCOMOTIVE; |