Skip to content

Commit

Permalink
Microdagr - Fix microdagr cursor disappearing when deleting last wayp…
Browse files Browse the repository at this point in the history
…oint (#10459)

fix cursor disappearing if deleting last waypoint
  • Loading branch information
Fratee authored Oct 29, 2024
1 parent 76d32f8 commit 00a20f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion addons/microdagr/functions/fnc_updateDisplay.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ case (APP_MODE_WAYPOINTS): {
_wpListBox lbSetTextRight [_forEachIndex, (format ["%1km", _2dDistanceKm toFixed GVAR(waypointPrecision)])];
} forEach _waypoints;

_currentIndex = (_currentIndex max 0) min (count _waypoints);
_currentIndex = (_currentIndex max 0) min ((count _waypoints) - 1);
if ((lbCurSel _wpListBox) != _currentIndex) then {
_wpListBox lbSetCurSel _currentIndex;
};
Expand Down

0 comments on commit 00a20f4

Please sign in to comment.