Prevent errors if zombie is deleted suddenly

This commit is contained in:
ebaydayz
2016-05-05 20:03:41 -04:00
parent 00cb76a496
commit b0ffc1421e
3 changed files with 4 additions and 1 deletions

View File

@@ -760,6 +760,7 @@ class FSM
"_remotetargets = _agent getVariable [""remotetargets"",[]];" \n
"" \n
"//Clear remote on reset" \n
"if (isNull _agent) then {_remotetargets = [];};" \n
"if (count _remotetargets > 0) then {" \n
" _agent setVariable [""remotetargets"",[],true];" \n
"};" \n