diff --git a/src/saveload/vehicle_sl.cpp b/src/saveload/vehicle_sl.cpp index 47976a3cae..8627681a60 100644 --- a/src/saveload/vehicle_sl.cpp +++ b/src/saveload/vehicle_sl.cpp @@ -1109,7 +1109,7 @@ void Load_VESR() { int index; while ((index = SlIterateArray()) != -1) { - auto iter = pending_speed_restriction_change_map.insert({ index, {} }); + auto iter = pending_speed_restriction_change_map.insert({ static_cast(index), {} }); PendingSpeedRestrictionChange *ptr = &(iter->second); SlObject(ptr, GetVehicleSpeedRestrictionDescription()); }