Skip to content

Commit 8fb5576

Browse files
authored
Magazine Repack - Minor optimisation (#10793)
Update fnc_startRepackingMagazine.sqf
1 parent 435f434 commit 8fb5576

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

addons/magazinerepack/functions/fnc_startRepackingMagazine.sqf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private _startingAmmoCounts = [];
5959
if (count _startingAmmoCounts < 2) exitWith {ERROR("Not Enough Mags to Repack");};
6060

6161
private _simEvents = [_fullMagazineCount, _startingAmmoCounts, _isBelt] call FUNC(simulateRepackEvents);
62-
private _totalTime = _simEvents select (count _simEvents - 1) select 0;
62+
private _totalTime = _simEvents select -1 select 0;
6363

6464
if (GVAR(repackAnimation)) then {
6565
[_player, "Gear"] call EFUNC(common,doGesture);

0 commit comments

Comments
 (0)