mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2026-09-11 09:09:29 +00:00
Fixes (#3032)
This commit is contained in:
@@ -108,9 +108,10 @@ void resetFilteredEntries(ContainerType& entries, KeySelector keySelector) {
|
||||
auto it = entries.begin();
|
||||
while (it != entries.end()) {
|
||||
if (keySelector(*it)) {
|
||||
entries.erase(it); // Add a new entry to filteredEntries
|
||||
it = entries.erase(it); // Add a new entry to filteredEntries
|
||||
} else {
|
||||
++it; // Move to the next element, outside of the if block
|
||||
}
|
||||
++it; // Move to the next element, outside of the if block
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user