mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
AdvThrow - Make sure ammo setVar is not empty (#4743)
This commit is contained in:
parent
d75eeac1e4
commit
8d1f988f5d
@ -11,7 +11,7 @@ GVAR(ammoMagLookup) = call CBA_fnc_createNamespace;
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
private _ammo = getText (configFile >> "CfgMagazines" >> _x >> "ammo");
|
private _ammo = getText (configFile >> "CfgMagazines" >> _x >> "ammo");
|
||||||
GVAR(ammoMagLookup) setVariable [_ammo, _x];
|
if (_ammo != "") then { GVAR(ammoMagLookup) setVariable [_ammo, _x]; };
|
||||||
} count (getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines"));
|
} count (getArray (configFile >> "CfgWeapons" >> "Throw" >> _x >> "magazines"));
|
||||||
nil
|
nil
|
||||||
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
|
} count getArray (configFile >> "CfgWeapons" >> "Throw" >> "muzzles");
|
||||||
|
Loading…
Reference in New Issue
Block a user