Common - Fix loading units into FFV cargo seats (#9280)

This commit is contained in:
Grim 2023-07-22 09:12:42 +03:00 committed by GitHub
parent 39e4f9340b
commit 4f4389dd59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,6 +38,10 @@ if ((_vehicle emptyPositions "cargo" > 0) && {!(_unit getVariable ['ACE_isUncons
};
if (!_slotsOpen) then {
private _cargoSeats = fullCrew [_vehicle, "cargo", true];
// FFV cargo seats are empty cargo positions but are not returned by fullCrew "cargo"
if (_cargoSeats isEqualTo []) then {
_cargoSeats = (fullCrew [_vehicle, "turret", true]) select {_x select 4};
};
if (_reverseFill) then {
reverse _cargoSeats;
};