Do never empty Weaponholders! - Get deleted by the engine!

This commit is contained in:
He-Man 2020-05-16 20:44:00 +02:00
parent 5576577472
commit 8fd48924d0
2 changed files with 6 additions and 4 deletions

View File

@ -28,10 +28,12 @@ params [["_vehicle",objnull],["_items",[]]];
private ["_subcontainersuffix"]; private ["_subcontainersuffix"];
_subcontainersuffix = []; _subcontainersuffix = [];
clearweaponcargoglobal _vehicle; if !(_vehicle iskindof "weaponholder") then {
clearitemcargoglobal _vehicle; clearweaponcargoglobal _vehicle;
clearmagazinecargoglobal _vehicle; clearitemcargoglobal _vehicle;
clearbackpackcargoglobal _vehicle; clearmagazinecargoglobal _vehicle;
clearbackpackcargoglobal _vehicle;
};
{ {
_objType = _forEachIndex; _objType = _forEachIndex;