Bug fixes. Added check for unexpected case where the thing to be deleted is stored as an object rather than netID

This commit is contained in:
Chris Cardozo 2020-10-04 15:50:13 -04:00
parent 62fa9184bf
commit 6931695295

View File

@ -27,13 +27,7 @@ for "_i" from 1 to (count blck_oldMissionObjects) do {
{
{
if (typeName _x isEqualTo "OBJECT") then {deleteVehicle _x};
if (_x isEqualType []) then
{
//[format["_fnc_cleanUpObjects: case of _x is array: %1",_x]] call blck_fnc_log;
{
if (typeName _x isEqualTo "OBJECT") then {deleteVehicle _x};
} forEach _x;
};
if (typeName _x isEqualTo "STRING") then {deleteVehicle (objectFromNetId _x)};
} forEach _objarr;
} else {
blck_oldMissionObjects pushback _oldObjs;