From 4445ec619520fcbb56df5506608385b809fc1fce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Badano?= Date: Fri, 16 Jan 2015 17:57:55 -0300 Subject: [PATCH] nightvision: fix --- addons/nightvision/functions/fnc_updatePPEffects.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/nightvision/functions/fnc_updatePPEffects.sqf b/addons/nightvision/functions/fnc_updatePPEffects.sqf index 03ae648ff8..1fdfbb9778 100644 --- a/addons/nightvision/functions/fnc_updatePPEffects.sqf +++ b/addons/nightvision/functions/fnc_updatePPEffects.sqf @@ -33,7 +33,7 @@ _fnc_isUsingHMD = { _turretConfigOpticsIn = _turretConfig >> "OpticsIn"; if (isClass _turretConfigOpticsIn) then { - for "_index" from 0 to (count _turretConfig - 1) do { + for "_index" from 0 to (count _turretConfigOpticsIn - 1) do { if ("NVG" in getArray (_turretConfigOpticsIn select _index >> "visionMode")) exitWith {_result = false}; }; } else {