Do not unpack Clothings in Containers on Restart

This commit is contained in:
He-Man 2019-09-06 19:51:55 +02:00
parent 120e2a624a
commit 3ef42f19e9

View File

@ -27,7 +27,7 @@
private [ private [
"_wepsItemsCargo","_magsAmmoCargo","_containers","_allContainers","_cargo","_magsAmmoCargox","_wepsItemsCargox","_magsAmmoCargoMinimized","_cargoIndex", "_wepsItemsCargo","_magsAmmoCargo","_containers","_allContainers","_cargo","_magsAmmoCargox","_wepsItemsCargox","_magsAmmoCargoMinimized","_cargoIndex",
"_inventory","_ItemCargo","_ItemCargox"]; "_inventory","_ItemCargo","_ItemCargox"];
params [["_vehicle",objnull],["_unpack",true]]; params [["_vehicle",objnull],["_unpack",false]];
// may not be needed but should prevent <null> in DB. // may not be needed but should prevent <null> in DB.
_wepsItemsCargo = weaponsItemsCargo _vehicle; _wepsItemsCargo = weaponsItemsCargo _vehicle;
if (isNil "_wepsItemsCargo") then { if (isNil "_wepsItemsCargo") then {