mirror of
https://github.com/holub/mame
synced 2025-04-25 09:50:04 +03:00
Merge pull request #2372 from npwoods/fix_crash_when_launched_from_favorites
Fixes a crash when returning to the front end when a system was launched from favorites
This commit is contained in:
commit
20ac866d56
@ -184,7 +184,9 @@ void menu_select_game::handle()
|
|||||||
// if i have to reselect a software, force software list submenu
|
// if i have to reselect a software, force software list submenu
|
||||||
if (reselect_last::get())
|
if (reselect_last::get())
|
||||||
{
|
{
|
||||||
const game_driver *const driver = reinterpret_cast<const game_driver *>(get_selection_ref());
|
const game_driver *driver;
|
||||||
|
const ui_software_info *software;
|
||||||
|
get_selection(software, driver);
|
||||||
menu::stack_push<menu_select_software>(ui(), container(), driver);
|
menu::stack_push<menu_select_software>(ui(), container(), driver);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user