Markers - Use lbData for channel selection (#9693)

* Change channel based on lbData instead of index

* Add author
This commit is contained in:
Kentaro Hayashida 2023-12-31 03:17:22 +01:00 committed by GitHub
parent 257ae757be
commit c3f442ffa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,6 @@
#include "..\script_component.hpp"
/*
* Author: commy2, LinkIsGrim
* Author: commy2, LinkIsGrim, Avokadomos
* When the channel list box is changed.
*
* Arguments:
@ -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));