mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-25 08:22:17 +00:00
Fix: Invalidate cached vehicle colourmaps when changing liveries setting. (#9006)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user