Resetting last selection on page navigation in optionsMenu to avoid unordered_map error

This commit is contained in:
Seth Wood
2025-02-13 07:00:26 -08:00
parent 1a9d4acc56
commit 7f6e02cd53

View File

@@ -1314,10 +1314,12 @@ namespace Menu {
else if (pages > 1 and key == "page_down") {
if (++page >= pages) page = 0;
selected = 0;
last_sel = -1;
}
else if (pages > 1 and key == "page_up") {
if (--page < 0) page = pages - 1;
selected = 0;
last_sel = -1;
}
else if (key == "tab") {
if (++selected_cat >= (int)categories.size()) selected_cat = 0;