Codechange: make VehicleID an enum

This commit is contained in:
Rubidium
2025-01-19 16:10:24 +01:00
committed by rubidium42
parent c25c3e8710
commit 2cb59b1856
6 changed files with 14 additions and 12 deletions
+1 -1
View File
@@ -3382,7 +3382,7 @@ public:
{
if (!str.has_value()) return;
Command<CMD_RENAME_VEHICLE>::Post(STR_ERROR_CAN_T_RENAME_TRAIN + Vehicle::Get(this->window_number)->type, this->window_number, *str);
Command<CMD_RENAME_VEHICLE>::Post(STR_ERROR_CAN_T_RENAME_TRAIN + Vehicle::Get(this->window_number)->type, static_cast<VehicleID>(this->window_number), *str);
}
void OnMouseOver([[maybe_unused]] Point pt, WidgetID widget) override