Fix warnings during compile time

This commit is contained in:
Jason P 2025-08-31 08:20:00 -05:00
parent 8fda42b08d
commit 81367a5f8a

View File

@ -1272,7 +1272,7 @@ void menuHandler::FrameToggles_menu()
bannerOptions.optionsEnumPtr = optionsEnumArray;
bannerOptions.InitialSelected = lastSelectedIndex; // Use index, not enum value
bannerOptions.bannerCallback = [optionsEnumArray, options](int selected) mutable -> void {
bannerOptions.bannerCallback = [options](int selected) mutable -> void {
// Find the index of selected in optionsEnumArray
int idx = 0;
for (; idx < options; ++idx) {