Rearm - Fix vehicles failing rearm due to case differences (#7609)

This commit is contained in:
Rutger "RedBery" Meijering 2020-03-20 17:54:30 +01:00 committed by GitHub
parent be3d69ff25
commit 1f20047410
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,5 +23,4 @@
params ["_vehicle", "_turretPath", "_magazineClass"];
private _ammo = magazinesAllTurrets _vehicle select {(_x select 0) isEqualTo _magazineClass && {(_x select 1) isEqualTo _turretPath}} apply {_x select 2};
_ammo
magazinesAllTurrets _vehicle select {(_x select 0) == _magazineClass && {(_x select 1) isEqualTo _turretPath}} apply {_x select 2}