Codechange: make VehicleID an enum
This commit is contained in:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user