Fix crash pressing battle keys when not in battle mode
This commit is contained in:
@@ -1382,7 +1382,8 @@ void ScreenGameplay::Input( const DeviceInput& DeviceI, const InputEventType typ
|
|||||||
else if( type==IET_FIRST_PRESS &&
|
else if( type==IET_FIRST_PRESS &&
|
||||||
!PREFSMAN->m_bAutoPlay &&
|
!PREFSMAN->m_bAutoPlay &&
|
||||||
MenuI.IsValid() &&
|
MenuI.IsValid() &&
|
||||||
GAMESTATE->IsPlayerEnabled( MenuI.player ) )
|
GAMESTATE->IsPlayerEnabled( MenuI.player ) &&
|
||||||
|
GAMESTATE->IsBattleMode() )
|
||||||
{
|
{
|
||||||
int iItemSlot;
|
int iItemSlot;
|
||||||
switch( MenuI.button )
|
switch( MenuI.button )
|
||||||
|
|||||||
Reference in New Issue
Block a user