Skip to content

Commit

Permalink
ADL: Fix error() when opening GMM during intro
Browse files Browse the repository at this point in the history
This is a regression from 516815d
  • Loading branch information
waltervn committed Mar 5, 2017
1 parent 494682d commit 3beb48f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions engines/adl/adl_v2.cpp
Expand Up @@ -634,6 +634,9 @@ int AdlEngine_v2::o2_initDisk(ScriptEnv &e) {
}

bool AdlEngine_v2::canSaveGameStateCurrently() {
if (!_canSaveNow)
return false;

// Back up first visit flag as it may be changed by this test
const bool isFirstTime = getCurRoom().isFirstTime;
const bool retval = AdlEngine::canSaveGameStateCurrently();
Expand Down
3 changes: 3 additions & 0 deletions engines/adl/hires6.cpp
Expand Up @@ -206,6 +206,9 @@ int HiRes6Engine::o_fluteSound(ScriptEnv &e) {
}

bool HiRes6Engine::canSaveGameStateCurrently() {
if (!_canSaveNow)
return false;

// Back up variables that may be changed by this test
const byte var2 = getVar(2);
const byte var24 = getVar(24);
Expand Down

0 comments on commit 3beb48f

Please sign in to comment.