test to prevent errors on null objects

This commit is contained in:
[VB]AWOL
2013-09-16 03:33:45 -05:00
parent 8cdf085f6e
commit 5374b9a5e2

View File

@@ -10,6 +10,8 @@ _isbuildable = (typeOf _object) in dayz_allowedObjects;
_isNotOk = false;
_firstTime = false;
if(isNull(_object)) exitWith { };
_objectID = _object getVariable ["ObjectID","0"];
_uid = _object getVariable ["ObjectUID","0"];