From ee6a9532ea487d7272072f793aa0c3e241200eab Mon Sep 17 00:00:00 2001 From: johnb432 <58661205+johnb432@users.noreply.github.com> Date: Wed, 7 Feb 2024 09:18:35 -0800 Subject: [PATCH] Update addons/csw/functions/fnc_compatibleMagazines.sqf --- addons/csw/functions/fnc_compatibleMagazines.sqf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [];