mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Update addons/csw/functions/fnc_compatibleMagazines.sqf
This commit is contained in:
parent
c94d29c88b
commit
ee6a9532ea
@ -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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user