Skip to content

Commit

Permalink
Fix case sensitivity problems
Browse files Browse the repository at this point in the history
  • Loading branch information
dedmen committed May 20, 2018
1 parent d2472b0 commit af83168
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion addons/arsenal/functions/fnc_fillRightPanel.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ private _compatibleMagazines = [[[], []], [[], []], [[], []]];
// Magazine groups
{
private _magazineGroups = uiNamespace getVariable [QGVAR(magazineGroups),["#CBA_HASH#",[],[],[]]];
private _magArray = [_magazineGroups, _x] call CBA_fnc_hashGet;
private _magArray = [_magazineGroups, toLower _x] call CBA_fnc_hashGet;
{((_compatibleMagazines select _index) select _subIndex) pushBackUnique _x} forEach _magArray;
} foreach ([getArray (_weaponConfig >> _x >> "magazineWell"), getArray (_weaponConfig >> "magazineWell")] select (_x == "this"));

Expand Down
8 changes: 6 additions & 2 deletions addons/arsenal/functions/fnc_scanConfig.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,17 @@ private _putList = [];

private _magazineGroups = [[],[]] call CBA_fnc_hashCreate;

privat _cfgMagazines = configFile >> "CfgMagazines";

{
private _magList = [];
{
_magList append getArray _x;
private _magazines = (getArray _x) select {isClass (_cfgMagazines >> _x)}; //filter out non-existent magazines
_magazines = _magazines apply {configName (_cfgMagazines >> _x)}; //Make sure classname case is correct
_magList append _magazines;
} foreach configProperties [_x, "isArray _x", true];

[_magazineGroups, configName _x, _magList arrayIntersect _magList] call CBA_fnc_hashSet;
[_magazineGroups, toLower configName _x, _magList arrayIntersect _magList] call CBA_fnc_hashSet;
} foreach configProperties [(configFile >> "CfgMagazineWells"), "isClass _x", true];

uiNamespace setVariable [QGVAR(configItems), _cargo];
Expand Down

0 comments on commit af83168

Please sign in to comment.