Fix repair at dead vehicle (#6262)

This commit is contained in:
Dystopian 2018-04-14 01:37:08 +02:00 committed by PabstMirror
parent 13d338a789
commit 350711a86c

View File

@ -22,7 +22,7 @@ private _nearObjects = nearestObjects [_unit, ["Air", "LandVehicle", "Slingload_
private _return = false;
{
if ([_x] call FUNC(isRepairVehicle)) exitWith {_return = true;};
if (alive _x && {[_x] call FUNC(isRepairVehicle)}) exitWith {_return = true;};
} forEach _nearObjects;
_return;