From 8a3998285a15aaaa96b64f3c5b283bfd2ce35e5d Mon Sep 17 00:00:00 2001 From: Aure7138 <100095051+Aure7138@users.noreply.github.com> Date: Wed, 31 Aug 2022 00:16:07 +0800 Subject: [PATCH] fix(SaveVehicles): Crash on load #418 (#434) Fixes #418 --- BigBaseV2/src/services/vehicle/persist_car_service.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BigBaseV2/src/services/vehicle/persist_car_service.cpp b/BigBaseV2/src/services/vehicle/persist_car_service.cpp index e557577a..202b9b55 100644 --- a/BigBaseV2/src/services/vehicle/persist_car_service.cpp +++ b/BigBaseV2/src/services/vehicle/persist_car_service.cpp @@ -174,7 +174,7 @@ namespace big if (VEHICLE::IS_THIS_MODEL_A_CAR(ENTITY::GET_ENTITY_MODEL(vehicle)) || VEHICLE::IS_THIS_MODEL_A_BIKE(ENTITY::GET_ENTITY_MODEL(vehicle))) { VEHICLE::SET_VEHICLE_WHEEL_TYPE(vehicle, vehicle_json[wheel_type_key]); - for (int i = MOD_SPOILERS; i <= MOD_LIGHTBAR; i++) + for (int i = MOD_SPOILERS; i < MOD_LIGHTBAR; i++) { const bool has_mod = !vehicle_json[mod_names[i]].is_null(); if (has_mod)