Skip to content

Commit

Permalink
ignore inherited arrays in magwells (#1042)
Browse files Browse the repository at this point in the history
  • Loading branch information
commy2 authored Dec 7, 2018
1 parent 3955b07 commit 3367244
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/common/fnc_compatibleMagazines.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Description:
Retrieves a list of magazines that are compatible with a weapon.
Parameters:
_weapon - Weapon configName or config
_weapon - Weapon configName or config
Example:
(begin example)
Expand Down Expand Up @@ -41,7 +41,7 @@ if (isNil "_returnMags") then {
private _wellConfig = configFile >> "CfgMagazineWells" >> _x;
{
_returnMags append getArray _x;
} forEach configProperties [_wellConfig, "isArray _x", true];
} forEach configProperties [_wellConfig, "isArray _x", false];
} forEach (getArray (_weapon >> "magazineWell"));

private _cfgMagazines = configFile >> "CfgMagazines";
Expand Down

0 comments on commit 3367244

Please sign in to comment.