fix visual panel crash when hit enter

This commit is contained in:
n0psledbyte 2018-07-23 18:23:42 +07:00 committed by Anton Kochkov
parent 961ae4323c
commit 7694964dfe

View File

@ -1585,7 +1585,7 @@ repeat:
case ' ':
case '\r':
case '\n':
if (!handleMenu (core, panels->currentMenu[panels->currentMenuIndex])) {
if (panels->currentMenu && !handleMenu (core, panels->currentMenu[panels->currentMenuIndex])) {
goto exit;
}
doPanelsRefresh (core);