Skip to content

Commit

Permalink
fix: I guess we can still not use std::views::enumerate
Browse files Browse the repository at this point in the history
  • Loading branch information
WerWolv committed Jan 19, 2025
1 parent 5e35322 commit af27c09
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/builtin/source/content/views/view_settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,9 @@ namespace hex::plugin::builtin {
}

// Draw all settings of that category
for (auto [index, subCategory] : category.subCategories | std::views::enumerate) {
u32 index = 0;
for (auto &subCategory : category.subCategories) {
ON_SCOPE_EXIT { index += 1; };

// Skip empty subcategories
if (subCategory.entries.empty())
Expand Down

0 comments on commit af27c09

Please sign in to comment.