diff options
| -rw-r--r-- | engines/pegasus/pegasus.cpp | 4 | 
1 files changed, 4 insertions, 0 deletions
| diff --git a/engines/pegasus/pegasus.cpp b/engines/pegasus/pegasus.cpp index 502a79ec25..98f0553783 100644 --- a/engines/pegasus/pegasus.cpp +++ b/engines/pegasus/pegasus.cpp @@ -1428,6 +1428,10 @@ void PegasusEngine::switchGameMode(const GameMode newMode, const GameMode oldMod  }  bool PegasusEngine::canSwitchGameMode(const GameMode newMode, const GameMode oldMode) { +	// WORKAROUND: Don't allow game mode switches when the interface is not set up. +	// Prevents segfaults when pressing 'i' when in the space chase. +	if (!g_interface) +		return false;  	if (newMode == kModeInventoryPick && oldMode == kModeBiochipPick)  		return false;  	if (newMode == kModeBiochipPick && oldMode == kModeInventoryPick) | 
