make sure holder is not null

This commit is contained in:
[VB]AWOL
2014-06-29 01:57:58 -05:00
parent b1016c798e
commit a1f56f9080

View File

@@ -6,8 +6,8 @@ _classname = _this select 2;
// Exit if player zombie
if(player isKindOf "PZombie_VB") exitWith {};
if (!isNull _holder) then {
_name = getText(configFile >> _type >> _classname >> "displayName");
_actionSet = _holder getVariable["actionSet", false];
if (!_actionSet) then {
@@ -15,3 +15,4 @@ if (!_actionSet) then {
player reveal _holder;
_holder setVariable["actionSet", true];
};
};