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
@@ -1250,7 +1250,7 @@ bool LoadOldVehicle(LoadgameState &ls, int num)
ReadTTDPatchFlags(ls);
for (uint i = 0; i < ls.vehicle_multiplier; i++) {
_current_vehicle_id = num * ls.vehicle_multiplier + i;
_current_vehicle_id = static_cast<VehicleID>(num * ls.vehicle_multiplier + i);
Vehicle *v;