Fix engine changes not updating build template train windows

This commit is contained in:
Jonathan G Rennison
2022-11-27 20:22:28 +00:00
parent 5d171e0023
commit 2eecf19edb
5 changed files with 11 additions and 0 deletions

View File

@@ -64,6 +64,7 @@ void AddRemoveEngineFromAutoreplaceAndBuildWindows(VehicleType type)
{
InvalidateWindowData(WC_REPLACE_VEHICLE, type, 0); // Update the autoreplace window
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
}
static const StringID _start_replace_dropdown[] = {