ACE3/addons/markers/functions/fnc_onLBSelChangedChannel.sqf
Kentaro Hayashida 1ed27288e8
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>
2023-12-31 10:27:43 -03:00

23 lines
450 B
Plaintext

#include "..\script_component.hpp"
/*
* Author: commy2, LinkIsGrim, Avokadomos
* When the channel list box is changed.
*
* Arguments:
* 0: Channel ListBox (idc 103) <CONTROL>
* 1: Selected Index <NUMBER>
*
* Return Value:
* None
*
* Example:
* [CONTROL, 5] call ACE_markers_fnc_onLBSelChangedChannel
*
* Public: No
*/
params ["_ctrl", "_index"];
TRACE_2("params",_ctrl,_index);
setCurrentChannel (parseNumber (_ctrl lbData _index));