Fix #2432 - Don't check for null attached when mounted

This commit is contained in:
PabstMirror 2015-09-14 18:06:46 -05:00
parent 16b7bb389c
commit 61cbe543ee

View File

@ -19,6 +19,8 @@
params ["_attachToVehicle", "_unit"];
TRACE_2("params",_attachToVehicle,_unit);
if ((vehicle _unit) != _unit) exitWith {false};
_attachedList = _attachToVehicle getVariable [QGVAR(attached), []];
if ((count _attachedList) == 0) exitWith {false};