Handle "loadout" changed event when player is null

This commit is contained in:
PabstMirror 2016-06-24 23:32:32 -05:00
parent 8d451354f8
commit c3710cc7f9

View File

@ -17,7 +17,7 @@
#include "script_component.hpp"
params ["_unit", "_gear"];
private _backpack = _gear select 6;
private _backpack = _gear param [6, ""];
if ((vehicle _unit) isKindOf "ParachuteBase" && {backpack _unit == ""} && {!(_unit getVariable [QGVAR(chuteIsCut),false])} && {_unit getVariable [QGVAR(hasReserve),false]}) then {
_unit addBackpackGlobal (_unit getVariable[QGVAR(backpackClass),"ACE_NonSteerableParachute"]);