From 89491c13b48053475029e3b123c89827f038d00e Mon Sep 17 00:00:00 2001 From: Grim <69561145+LinkIsGrim@users.noreply.github.com> Date: Sun, 28 Jul 2024 12:29:30 -0300 Subject: [PATCH] drop redundant null check Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com> --- 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 b4a13fc57a5..e32cf7c1012 100644 --- a/addons/csw/functions/fnc_ai_switchMagazine.sqf +++ b/addons/csw/functions/fnc_ai_switchMagazine.sqf @@ -22,7 +22,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)}) exitWith {false}; // must be config case _carryMag = configName (configFile >> "CfgMagazines" >> _carryMag);