mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
Cleaned up canPassMagazine condition
This commit is contained in:
parent
a29902ddb3
commit
ccf1bf1de7
@ -26,8 +26,8 @@ _filteredMags = [magazinesAmmoFull _player, {
|
||||
_className in _compatibleMags && !_loaded
|
||||
}] call EFUNC(common,filter);
|
||||
|
||||
if !(_filteredMags isEqualTo []) then {
|
||||
({_target canAdd (_x select 0)} count _filteredMags) > 0
|
||||
if (!(_filteredMags isEqualTo []) && {{_target canAdd (_x select 0)} count _filteredMags > 0}) then {
|
||||
true
|
||||
} else {
|
||||
false
|
||||
};
|
Loading…
Reference in New Issue
Block a user