diff options
author | PeterN <peter1138@openttd.org> | 2021-04-11 13:30:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-11 14:30:13 +0200 |
commit | 31c5b8fe0f9c070143625478f7120e0c9c2332fd (patch) | |
tree | 9e737c00a0a98862266d010dc5953066cde712b6 /src | |
parent | 5644c00482ce2ca43e0f46f3ed40993599bb5707 (diff) | |
download | openttd-31c5b8fe0f9c070143625478f7120e0c9c2332fd.tar.xz |
Fix: Invalidate cached vehicle colourmaps when changing liveries setting. (#9006)
Diffstat (limited to 'src')
-rw-r--r-- | src/settings.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |