From 31c5b8fe0f9c070143625478f7120e0c9c2332fd Mon Sep 17 00:00:00 2001 From: PeterN Date: Sun, 11 Apr 2021 13:30:13 +0100 Subject: Fix: Invalidate cached vehicle colourmaps when changing liveries setting. (#9006) --- src/settings.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/settings.cpp b/src/settings.cpp index 3448ce4b3..fdb26368c 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -63,6 +63,7 @@ #include "roadveh.h" #include "fios.h" #include "strings_func.h" +#include "vehicle_func.h" #include "void_map.h" #include "station_base.h" @@ -1153,6 +1154,7 @@ static bool InvalidateNewGRFChangeWindows(int32 p1) static bool InvalidateCompanyLiveryWindow(int32 p1) { InvalidateWindowClassesData(WC_COMPANY_COLOUR, -1); + ResetVehicleColourMap(); return RedrawScreen(p1); } -- cgit v1.2.3-70-g09d2