diff --git a/addons/csw/functions/fnc_compatibleMagazines.sqf b/addons/csw/functions/fnc_compatibleMagazines.sqf index ce5afe8a51..ddc9c67b09 100644 --- a/addons/csw/functions/fnc_compatibleMagazines.sqf +++ b/addons/csw/functions/fnc_compatibleMagazines.sqf @@ -23,7 +23,7 @@ if !((typeOf _csw) in GVAR(initializedStaticTypes)) exitWith {createHashMap}; // fast exit for csw with single weapon, most common scenario if (count allTurrets _csw isEqualTo 1 && {count weapons _csw isEqualTo 1}) exitWith { - +(GVAR(compatibleMagsCache) get ((weapons _csw) select 0)) // return + +(GVAR(compatibleMagsCache) getOrDefault [(weapons _csw) select 0, createHashMap]) // return }; private _weapons = [];