diff options
-rw-r--r-- | vehicle_gui.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c index 9fd4461bb..97396546e 100644 --- a/vehicle_gui.c +++ b/vehicle_gui.c @@ -472,7 +472,7 @@ static void train_engine_drawing_loop(int *x, int *y, int *pos, int *sel, Engine colour = *sel == 0 ? 0xC : 0x10; - if (!(ENGINE_AVAILABLE && show_outdated && RailVehInfo(i)->power && e->railtype == railtype)) { + if (!(ENGINE_AVAILABLE && show_outdated && RailVehInfo(i)->power && IsCompatibleRail(e->railtype, railtype))) { if ((!IsCompatibleRail(e->railtype, railtype) && show_compatible) || (e->railtype != railtype && !show_compatible) || !(rvi->flags & RVI_WAGON) != is_engine || |