Skip to content

Commit

Permalink
Merge pull request #1610 from Vdauphin/FIX-Ream_illimited
Browse files Browse the repository at this point in the history
FIX: Ream not available when ACE rearm is set unlimited
  • Loading branch information
Vdauphin authored Apr 22, 2024
2 parents 82138c5 + a5ab62e commit c34896a
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,11 @@ if (_supplyVehicle isNotEqualTo []) then {
];

if (_isSupplyVehicle) then {
[_vehicle, _currentSupply] call ace_rearm_fnc_makeSource;
if (_currentSupply isEqualTo -1) then {
[_vehicle, 0] call ace_rearm_fnc_makeSource;
} else {
[_vehicle, _currentSupply] call ace_rearm_fnc_makeSource;
}
};
_vehicle setVariable ["btc_EDEN_defaultSupply", _defaultSupply, true];
};
Expand Down

0 comments on commit c34896a

Please sign in to comment.