Codechange: make WindowClass a scoped enum

This commit is contained in:
Rubidium
2026-05-20 21:39:04 +02:00
committed by rubidium42
parent a9a2965131
commit bcda4a72ee
134 changed files with 1361 additions and 1249 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ void OrderBackup::DoRestore(Vehicle *v)
} else if (!this->orders.empty() && OrderList::CanAllocateItem()) {
v->orders = OrderList::Create(std::move(this->orders), v);
/* Make sure buoys/oil rigs are updated in the station list. */
InvalidateWindowClassesData(WC_STATION_LIST, 0);
InvalidateWindowClassesData(WindowClass::StationList, 0);
}
/* Remove backed up name if it's no longer unique. */