From 1ed27288e818f1c67e73708398d06b111fd4a652 Mon Sep 17 00:00:00 2001 From: Kentaro Hayashida Date: Sun, 31 Dec 2023 14:27:43 +0100 Subject: [PATCH] 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> --- addons/markers/functions/fnc_onLBSelChangedChannel.sqf | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/addons/markers/functions/fnc_onLBSelChangedChannel.sqf b/addons/markers/functions/fnc_onLBSelChangedChannel.sqf index 56122e5728..e7b696270f 100644 --- a/addons/markers/functions/fnc_onLBSelChangedChannel.sqf +++ b/addons/markers/functions/fnc_onLBSelChangedChannel.sqf @@ -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));