Skip to content

Commit

Permalink
Arsenal - Fix script error from hide changes (#6699)
Browse files Browse the repository at this point in the history
  • Loading branch information
PabstMirror authored Nov 19, 2018
1 parent 73adedf commit 03e01f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/arsenal/functions/fnc_addVirtualItems.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ if (_items isEqualType true) then {
switch true do {
// Rifle, handgun, secondary weapons mags
case (
((getNumber (_x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) ||
{(getNumber (_x >> QGVAR(hide))) == -1}) &&
((getNumber (configFile >> "CfgMagazines" >> _x >> "type") in [TYPE_MAGAZINE_PRIMARY_AND_THROW,TYPE_MAGAZINE_SECONDARY_AND_PUT,1536,TYPE_MAGAZINE_HANDGUN_AND_GL]) ||
{(getNumber (configFile >> "CfgMagazines" >> _x >> QGVAR(hide))) == -1}) &&
{!(_x in _grenadeList)} &&
{!(_x in _putList)}
): {
Expand Down

0 comments on commit 03e01f0

Please sign in to comment.