diff --git a/addons/continuity/functions/fnc_registerObjectID.sqf b/addons/continuity/functions/fnc_registerObjectID.sqf index 86957ec..aeb45a8 100644 --- a/addons/continuity/functions/fnc_registerObjectID.sqf +++ b/addons/continuity/functions/fnc_registerObjectID.sqf @@ -19,5 +19,10 @@ params["_object", "_edenID"]; TRACE_2("registerObjectID",_object,_edenID); +if (_object isEqualType "") then { + _object = missionNamespace getVariable [_object, objNull]; +}; +if (isNull _object) exitWith {}; + GVAR(idMap) set [_edenID, _object]; -_object setVariable [QGVAR(objectID), _edenID, true]; +_object setVariable [QGVAR(objectID), _edenID, true]; \ No newline at end of file