From f70d2f7a4a797eab1102275770d4ba35c110f605 Mon Sep 17 00:00:00 2001 From: He-Man Date: Wed, 26 Jul 2017 22:40:34 +0200 Subject: [PATCH] Clear Veh Cargo after upgrade --- .../compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf index db2c0fae..b99caadc 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_upgrade_vehicle.sqf @@ -107,6 +107,10 @@ if(["CfgDynamicSimulation", "vehicleDynamicSimulationSystem", true] call EPOCH_f // add back old inventory +clearWeaponCargoGlobal _newveh; +clearMagazineCargoGlobal _newveh; +clearBackpackCargoGlobal _newveh; +clearItemCargoGlobal _newveh; [_newveh,_cargo] call EPOCH_server_CargoFill; // save new vehicle to db