mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
FileMode: Fix crash when selected is 0.
This commit is contained in:
parent
629a0b72dd
commit
85dfaa73b9
|
|
@ -157,7 +157,8 @@ void FileModeState::enter_selected(fslib::Path &path, fslib::Directory &director
|
|||
{
|
||||
const int selected = menu.get_selected();
|
||||
|
||||
if (selected == 1) { FileModeState::up_one_directory(path, directory, menu); }
|
||||
if (selected == 0) { return; }
|
||||
else if (selected == 1) { FileModeState::up_one_directory(path, directory, menu); }
|
||||
else
|
||||
{
|
||||
const int dirIndex = selected - 2;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user