From 8549b11a9ac1ddc022b56fd63c3c96c5f83282b1 Mon Sep 17 00:00:00 2001 From: Nathan Woods Date: Wed, 7 Jun 2017 19:41:03 -0400 Subject: Fixes a crash when returning to the front end when a system was launched from favorites This bug could be reproduced with the following steps: 1. Put 'nes' in 'Favorites' 2. Launch 'nes' 3. Choose something from the software menu and run the emulation 4. Escape back -- CRASH --- src/frontend/mame/ui/selgame.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/frontend/mame/ui/selgame.cpp b/src/frontend/mame/ui/selgame.cpp index b97af1f87f6..faeb1f33aff 100644 --- a/src/frontend/mame/ui/selgame.cpp +++ b/src/frontend/mame/ui/selgame.cpp @@ -184,7 +184,9 @@ void menu_select_game::handle() // if i have to reselect a software, force software list submenu if (reselect_last::get()) { - const game_driver *const driver = reinterpret_cast(get_selection_ref()); + const game_driver *driver; + const ui_software_info *software; + get_selection(software, driver); menu::stack_push(ui(), container(), driver); return; } -- cgit v1.2.3