From dedfae4db39aa2f474448e88451ae857025b167e Mon Sep 17 00:00:00 2001 From: John Jordan Date: Tue, 8 Oct 2024 19:04:08 +0100 Subject: [PATCH] Fix CUP disposable missile launchers breaking init after CBA 3.18 update --- .../functions/Ammunition/fn_equipmentClassToCategories.sqf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf b/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf index a827a34025..eeb3294778 100644 --- a/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf +++ b/A3A/addons/core/functions/Ammunition/fn_equipmentClassToCategories.sqf @@ -163,8 +163,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 {};