mirror of
https://github.com/joel16/3DShell.git
synced 2024-11-23 11:39:47 +00:00
gui: Fix selector going out of bounds when right key is used
This commit is contained in:
parent
af4b077f08
commit
e69150d2b5
@ -94,7 +94,8 @@ namespace GUI {
|
||||
}
|
||||
else if (*kDown & KEY_DRIGHT) {
|
||||
item->selected = item->entries.size() - 1;
|
||||
start = size - (max_entries - 1);
|
||||
if ((item->entries.size() - 1) > max_entries)
|
||||
start = size - (max_entries - 1);
|
||||
}
|
||||
|
||||
if (*kDown & KEY_A) {
|
||||
|
Loading…
Reference in New Issue
Block a user