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"];
_subcontainersuffix = [];
if !(_vehicle iskindof "weaponholder") then {
clearweaponcargoglobal _vehicle;
clearitemcargoglobal _vehicle;
clearmagazinecargoglobal _vehicle;
clearbackpackcargoglobal _vehicle;
};
{
_objType = _forEachIndex;