check was the wrong way around, causing another event to be popped after a stop request

This commit is contained in:
Michaël Banaan Ananas 2014-01-04 23:54:33 +00:00
parent f19704cb3e
commit a868206f6f

View File

@ -750,7 +750,7 @@ void ui_menu::handle_events()
ui_event local_menu_event;
/* loop while we have interesting events */
while (ui_input_pop_event(machine(), &local_menu_event) && !stop)
while (!stop && ui_input_pop_event(machine(), &local_menu_event))
{
switch (local_menu_event.event_type)
{