Skip to content

Markers - Fix script error on profiling branch (radioChannelInfo)#11138

Merged
PabstMirror merged 1 commit intomasterfrom
markerProfiling
Nov 22, 2025
Merged

Markers - Fix script error on profiling branch (radioChannelInfo)#11138
PabstMirror merged 1 commit intomasterfrom
markerProfiling

Conversation

@PabstMirror
Copy link
Copy Markdown
Contributor

21:15:22 File /z/ace/addons/markers/functions/fnc_getEnabledChannels.sqf..., line 30
21:15:22 Error in expression <, radioChannelInfo (_selectChannel - 5) select 1];
21:15:22   Error 0 elements provided, 2 expected
21:15:22 File /z/ace/addons/markers/functions/fnc_initInsertMarker.sqf..., line 241

radioChannelInfo -1 now returns []
so the select fails

@PabstMirror PabstMirror added this to the 3.20.2 milestone Nov 16, 2025
@PabstMirror PabstMirror added the kind/bug-fix Release Notes: **FIXED:** label Nov 16, 2025
// Micro-optimization so we don't rebuild the array and localize in each iteration
private _engineChannels = CHANNEL_NAMES;

for "_channelId" from 0 to 15 do {
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

noting they are planning on adding more channels,
so this hardcoded 15 will have to be changed in the future

@PabstMirror PabstMirror merged commit f7987f5 into master Nov 22, 2025
3 checks passed
@PabstMirror PabstMirror deleted the markerProfiling branch November 22, 2025 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind/bug-fix Release Notes: **FIXED:**

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants