drop redundant null check

Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
Grim 2024-07-28 12:29:30 -03:00 committed by GitHub
parent b0504d7ba0
commit 89491c13b4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);