Skip to content

Commit

Permalink
fix undefined var
Browse files Browse the repository at this point in the history
  • Loading branch information
some-evil-kitty authored and veteran29 committed Aug 29, 2024
1 parent 8a6d78a commit cc4ac03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Missionframework/scripts/client/misc/fn_initArsenal.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -98,12 +98,12 @@ if (KPLIB_param_useArsenalPreset) then {
// Handle CBA (MRT) Accessories, https://github.com/CBATeam/CBA_A3/wiki/Accessory-Functions
private _itemCfg = configFile >> "CfgWeapons" >> _x;
if (!isNull _itemCfg) then {
private _nextItem = getText (_cfg >> "MRT_SwitchItemPrevClass");
private _nextItem = getText (_itemCfg >> "MRT_SwitchItemPrevClass");
if (_nextItem != "") then {
KPLIB_arsenalAllowedExtension pushBackUnique _nextItem;
};

private _prevItem = getText (_cfg >> "MRT_SwitchItemNextClass");
private _prevItem = getText (_itemCfg >> "MRT_SwitchItemNextClass");
if (_prevItem != "") then {
KPLIB_arsenalAllowedExtension pushBackUnique _prevItem;
};
Expand Down

0 comments on commit cc4ac03

Please sign in to comment.