Skip to content

Commit

Permalink
fix undefined _alive
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomcat-SG committed Oct 30, 2020
1 parent 2462ba6 commit e353f2b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion addons/airway/XEH_postInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ if !(GVAR(enable)) exitWith {};
if !(_state) exitWith {
_unit call FUNC(init);
};
if (!_alive && (_unit getVariable [GVAR(string_exit), false])) exitWith {};

private _alive = alive _unit;
if ((!_alive) || (_unit getVariable [GVAR(string_exit), ""] isEqualTo "keko_wasPunched")) exitWith {};
if (EGVAR(breathing,enable)) then {
["handleBreathing", [_unit, CBA_missionTime], _unit] call CBA_fnc_targetEvent;
};
Expand Down

0 comments on commit e353f2b

Please sign in to comment.