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:
parent
62fa9184bf
commit
6931695295
@ -27,13 +27,7 @@ for "_i" from 1 to (count blck_oldMissionObjects) do {
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
if (typeName _x isEqualTo "OBJECT") then {deleteVehicle _x};
|
if (typeName _x isEqualTo "OBJECT") then {deleteVehicle _x};
|
||||||
if (_x isEqualType []) then
|
if (typeName _x isEqualTo "STRING") then {deleteVehicle (objectFromNetId _x)};
|
||||||
{
|
|
||||||
//[format["_fnc_cleanUpObjects: case of _x is array: %1",_x]] call blck_fnc_log;
|
|
||||||
{
|
|
||||||
if (typeName _x isEqualTo "OBJECT") then {deleteVehicle _x};
|
|
||||||
} forEach _x;
|
|
||||||
};
|
|
||||||
} forEach _objarr;
|
} forEach _objarr;
|
||||||
} else {
|
} else {
|
||||||
blck_oldMissionObjects pushback _oldObjs;
|
blck_oldMissionObjects pushback _oldObjs;
|
||||||
|
Loading…
Reference in New Issue
Block a user