diff options
Diffstat (limited to 'engines/startrek/awaymission.cpp')
-rw-r--r-- | engines/startrek/awaymission.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/startrek/awaymission.cpp b/engines/startrek/awaymission.cpp index 41533d7bb7..c3fe9f732d 100644 --- a/engines/startrek/awaymission.cpp +++ b/engines/startrek/awaymission.cpp @@ -45,7 +45,7 @@ void StarTrekEngine::initAwayMission() { } void StarTrekEngine::runAwayMission() { - while (true) { + while (_gameMode == GAMEMODE_AWAYMISSION && !_resetGameMode) { // Original game manipulates the stack when the room changes to return execution // to this point. Instead of doing that, just check if a variable is set. if (_roomIndexToLoad != -1 && _spawnIndexToLoad != -1) { |