@@ -769,7 +769,10 @@ CommandCost CmdSetAutoReplace(TileIndex
cost = RemoveEngineReplacementForCompany(c, old_engine_type, id_g, flags);
}
if (flags & DC_EXEC) GroupStatistics::UpdateAutoreplace(_current_company);
if (flags & DC_EXEC) {
GroupStatistics::UpdateAutoreplace(_current_company);
SetWindowClassesDirty(GetWindowClassForVehicleType(Engine::Get(old_engine_type)->type));
if ((flags & DC_EXEC) && IsLocalCompany()) InvalidateAutoreplaceWindow(old_engine_type, id_g);
return cost;
Status change: