From 69316952955c74fa86e84b25eaf1887374a2c407 Mon Sep 17 00:00:00 2001 From: Chris Cardozo Date: Sun, 4 Oct 2020 15:50:13 -0400 Subject: [PATCH] Bug fixes. Added check for unexpected case where the thing to be deleted is stored as an object rather than netID --- .../Compiles/Missions/GMS_fnc_cleanUpObjects.sqf | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf index 4539468..5f3f125 100644 --- a/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf +++ b/@GMS/addons/custom_server/Compiles/Missions/GMS_fnc_cleanUpObjects.sqf @@ -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;