From 1cf254a752e486136a0734a8be2bfe8c811aacf0 Mon Sep 17 00:00:00 2001 From: Salluci Date: Fri, 14 Jul 2023 19:36:40 +0300 Subject: [PATCH] fix condition --- addons/csw/functions/fnc_ai_switchMagazine.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/csw/functions/fnc_ai_switchMagazine.sqf b/addons/csw/functions/fnc_ai_switchMagazine.sqf index c87d3a5400..0c1f58ef48 100644 --- a/addons/csw/functions/fnc_ai_switchMagazine.sqf +++ b/addons/csw/functions/fnc_ai_switchMagazine.sqf @@ -21,7 +21,7 @@ */ params [["_vehicle", objNull, [objNull]], ["_carryMag", "", [""]], ["_turretPath", [0], [[0]]], ["_instantReload", false, [false]], ["_clearForcedMag", true, [true]]]; -if !(alive _vehicle && {!(isNull _vehicle turretUnit _turretPath)} && {!isNull _vehicle}) exitWith {false}; +if !(alive _vehicle && {!isNull (_vehicle turretUnit _turretPath)} && {!(isNull _vehicle)}) exitWith {false}; // must be config case _carryMag = configName (configFile >> "CfgMagazines" >> _carryMag);