mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
drop redundant null check
Co-authored-by: johnb432 <58661205+johnb432@users.noreply.github.com>
This commit is contained in:
parent
b0504d7ba0
commit
89491c13b4
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
params [["_vehicle", objNull, [objNull]], ["_carryMag", "", [""]], ["_turretPath", [0], [[0]]], ["_instantReload", false, [false]], ["_clearForcedMag", true, [true]]];
|
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
|
// must be config case
|
||||||
_carryMag = configName (configFile >> "CfgMagazines" >> _carryMag);
|
_carryMag = configName (configFile >> "CfgMagazines" >> _carryMag);
|
||||||
|
Loading…
Reference in New Issue
Block a user