fix crash

This commit is contained in:
Glenn Maynard
2003-04-22 22:51:49 +00:00
parent 31c8bf7f9f
commit 850e82e5f9
+5 -2
View File
@@ -234,8 +234,11 @@ void ScreenMapControllers::Input( const DeviceInput& DeviceI, const InputEventTy
m_iCurButton++;
break;
case SDLK_ESCAPE: /* Quit the screen. */
SOUNDMAN->PlayOnce( THEME->GetPathToS("Common start") );
m_Menu.StartTransitioning( SM_GoToNextScreen );
if(!m_Menu.IsTransitioning())
{
SOUNDMAN->PlayOnce( THEME->GetPathToS("Common start") );
m_Menu.StartTransitioning( SM_GoToNextScreen );
}
break;
case SDLK_RETURN: /* Change the selection. */
m_bWaitingForPress = true;