diff --git a/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf b/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf index b173a63d31..4426215d8c 100644 --- a/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf +++ b/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf @@ -170,8 +170,8 @@ call { if (getNumber (_config >> "rhs_disposable") == 1 or _mainmag == "CBA_fakeLauncherMagazine") then { _categories pushBack "Disposable"; if (getNumber (_config >> "scope") == 1) exitWith { _categories set [0, "UsedLaunchers"] }; - if (_mainmag == "CBA_fakeLauncherMagazine" and !isNil "cba_disposable_normalLaunchers") then { - _mainmag = (cba_disposable_normalLaunchers getVariable _classname) # 1; // format is [realLauncher, magazine] + if (_mainmag == "CBA_fakeLauncherMagazine" and !isNil "cba_disposable_normalLaunchers" and {typeName cba_disposable_normalLaunchers == "HASHMAP"}) then { + _mainmag = (cba_disposable_normalLaunchers get _classname) # 1; // format is [realLauncher, magazine] }; }; if (_categories#0 == "UsedLaunchers") exitWith {};