Skip to content

Commit

Permalink
Markers - Use lbData for channel selection (#9693)
Browse files Browse the repository at this point in the history
* Change channel based on lbData instead of index

* Add author
  • Loading branch information
Avokadomos authored Dec 31, 2023
1 parent 257ae75 commit c3f442f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/markers/functions/fnc_onLBSelChangedChannel.sqf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "..\script_component.hpp"
/*
* Author: commy2, LinkIsGrim
* Author: commy2, LinkIsGrim, Avokadomos
* When the channel list box is changed.
*
* Arguments:
Expand All @@ -21,4 +21,4 @@ TRACE_2("params",_ctrl,_index);

private _enabledChannels = false call FUNC(getEnabledChannels);

setCurrentChannel (_enabledChannels select _index);
setCurrentChannel (_enabledChannels select parseNumber (_ctrl lbData _index));

0 comments on commit c3f442f

Please sign in to comment.