From 389afe61ff313341f239479a2ddaf236f564688c Mon Sep 17 00:00:00 2001 From: He-Man Date: Thu, 7 Jul 2016 17:46:02 +0200 Subject: [PATCH] Update EPOCH_server_save_storage.sqf Unpack Backpacks / Vests / Uniforms. Otherwise Inventory will get lost --- .../epoch_vehicle/EPOCH_server_save_storage.sqf | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_storage.sqf b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_storage.sqf index a407bdaa..e6ddca33 100644 --- a/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_storage.sqf +++ b/Sources/epoch_server/compile/epoch_vehicle/EPOCH_server_save_storage.sqf @@ -35,6 +35,18 @@ if (!isNull _vehicle) then { if (isNil "_magsAmmoCargo") then { _magsAmmoCargo = []; }; + + { + _cargo = _x select 1; + _magsAmmoCargox = magazinesAmmoCargo _cargo; + { + _magsAmmoCargo pushback _x; + } foreach _magsAmmoCargox; + _wepsItemsCargox = weaponsItemsCargo _cargo; + { + _wepsItemsCargo pushback _x; + } foreach _wepsItemsCargox; + } foreach everycontainer _vehicle; // minimize magazine ammo cargo _magsAmmoCargoMinimized = [[],[]];