Skip to content

Commit

Permalink
fixed added digger
Browse files Browse the repository at this point in the history
  • Loading branch information
AdlerSalbei committed Oct 9, 2023
1 parent 796536f commit 7d2d8f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/functions/functions/fnc_addDigger.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ private _handle = [

// Create progress bar
private _fnc_onFinish = {
(_this select 0) params ["_unit", "_trench", "_handle"];
(_this select 0) params ["_unit", "_trench", "_finishCondition", "_handle"];

_unit setVariable [QGVAR(diggingTrench), false, true];
[_handle] call CBA_fnc_removePerFrameHandler;
Expand Down Expand Up @@ -104,6 +104,6 @@ private _fnc_condition = {
true
};

[[_unit, _trench, _finishCondition], _fnc_onFinish, _fnc_onFailure, localize "STR_ace_trenches_DiggingTrench", _fnc_condition] call FUNC(progressBar);
[[_unit, _trench, _finishCondition, _handle], _fnc_onFinish, _fnc_onFailure, localize "STR_ace_trenches_DiggingTrench", _fnc_condition] call FUNC(progressBar);

[_unit] call FUNC(loopanimation);

0 comments on commit 7d2d8f7

Please sign in to comment.