Markers - Fix logic error when selecting channel (#9702)

* Fix logic error when selecting channel

* remove lookup

* Update fnc_onLBSelChangedChannel.sqf

---------

Co-authored-by: Grim <69561145+LinkIsGrim@users.noreply.github.com>
This commit is contained in:
Kentaro Hayashida 2023-12-31 14:27:43 +01:00 committed by GitHub
parent cb554a3ea7
commit 1ed27288e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,6 +19,4 @@
params ["_ctrl", "_index"];
TRACE_2("params",_ctrl,_index);
private _enabledChannels = false call FUNC(getEnabledChannels);
setCurrentChannel (_enabledChannels select parseNumber (_ctrl lbData _index));
setCurrentChannel (parseNumber (_ctrl lbData _index));