isnull checks may help reduce log spam

This commit is contained in:
[VB]AWOL
2014-02-23 09:45:50 -06:00
parent c9181047ab
commit b6c3bc1a50
2 changed files with 7 additions and 2 deletions

View File

@@ -1,11 +1,13 @@
private ["_unit","_variable","_arraytosend","_owner","_vehicle","_qty"];
//Inbound [_unit,"PVCDZ_hlt_Transfuse",[_unit,player,1000]]
_unit = _this select 0;
if(isNull _unit) exitWith {diag_log format ["ERROR: sendToClient is Null: %1", _unit]};
_variable = _this select 1;
_arraytosend = _this select 2;
_owner = owner _unit;
//diag_log format ["%1, %2, %3, %4", _unit, _variable, _arraytosend, _owner];
//execution