Fix template train build window not being refreshed for variants changes

This commit is contained in:
Jonathan G Rennison
2023-03-07 19:11:59 +00:00
parent 57437e7068
commit e061fa06fd
3 changed files with 6 additions and 0 deletions

View File

@@ -630,6 +630,7 @@ public:
InvalidateWindowData(WC_REPLACE_VEHICLE, (VehicleType)this->window_number, 0); // Update the autoreplace window
InvalidateWindowClassesData(WC_BUILD_VEHICLE); // The build windows needs updating as well
InvalidateWindowClassesData(WC_BUILD_VIRTUAL_TRAIN);
return;
}
if ((item.flags & EngineDisplayFlags::Shaded) == EngineDisplayFlags::None) e = item.engine_id;