diff --git a/addons/medical/XEH_init.sqf b/addons/medical/XEH_init.sqf index 4d92575f9b..0ded7d471f 100644 --- a/addons/medical/XEH_init.sqf +++ b/addons/medical/XEH_init.sqf @@ -3,8 +3,8 @@ private ["_unit"]; _unit = _this select 0; -if !(local _unit) exitWith {}; - _unit addEventHandler ["HandleDamage", {_this call FUNC(handleDamage)}]; -[_unit] call FUNC(init); +if (local _unit) then { + [_unit] call FUNC(init); +};