fix condition

This commit is contained in:
Salluci 2023-07-14 19:36:40 +03:00
parent 2b52fee1bf
commit 1cf254a752

View File

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