Fix crash pressing battle keys when not in battle mode

This commit is contained in:
Glenn Maynard
2003-07-09 20:34:14 +00:00
parent b4021ac0c6
commit a9e859f6fa
+2 -1
View File
@@ -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 )