From a9e859f6fa68b9ebe05b681ead7e8e182f8e73c5 Mon Sep 17 00:00:00 2001 From: Glenn Maynard Date: Wed, 9 Jul 2003 20:34:14 +0000 Subject: [PATCH] Fix crash pressing battle keys when not in battle mode --- stepmania/src/ScreenGameplay.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stepmania/src/ScreenGameplay.cpp b/stepmania/src/ScreenGameplay.cpp index 9030d77218..6b93c96005 100644 --- a/stepmania/src/ScreenGameplay.cpp +++ b/stepmania/src/ScreenGameplay.cpp @@ -1382,7 +1382,8 @@ void ScreenGameplay::Input( const DeviceInput& DeviceI, const InputEventType typ else if( type==IET_FIRST_PRESS && !PREFSMAN->m_bAutoPlay && MenuI.IsValid() && - GAMESTATE->IsPlayerEnabled( MenuI.player ) ) + GAMESTATE->IsPlayerEnabled( MenuI.player ) && + GAMESTATE->IsBattleMode() ) { int iItemSlot; switch( MenuI.button )