Fix crash when force-exiting a ROM from debugger.

This commit is contained in:
Stephen Anthony 2018-09-17 12:24:38 -02:30
parent ea31d4b464
commit 508102b56e
1 changed files with 3 additions and 2 deletions

View File

@ -156,9 +156,10 @@ void Debugger::quit(bool exitrom)
if(exitrom)
myOSystem.eventHandler().handleEvent(Event::LauncherMode, 1);
else
{
myOSystem.eventHandler().leaveDebugMode();
myOSystem.console().tia().clearPendingFrame();
myOSystem.console().tia().clearPendingFrame();
}
}
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -