Use lazy evaluation

This commit is contained in:
jonpas 2016-04-14 13:55:15 +02:00
parent dec266a546
commit 04831267f2

View File

@ -22,7 +22,7 @@ if (!GVAR(enabled) || isNull ACE_player) exitWith {};
private _vehicle = vehicle ACE_player;
private _landVehicle = _vehicle isKindOf "LandVehicle" || _vehicle isKindOf "Ship_F";
private _landVehicle = _vehicle isKindOf "LandVehicle" || {_vehicle isKindOf "Ship_F"};
private _airVehicle = _vehicle isKindOf "Air";
if (!_landVehicle && !_airVehicle) exitWith {