diff options
author | Filippos Karapetis | 2007-07-31 17:41:10 +0000 |
---|---|---|
committer | Filippos Karapetis | 2007-07-31 17:41:10 +0000 |
commit | 03d7990a341a5c05d2b23b073620159d3fe15a0f (patch) | |
tree | 87318f60b356120b73965e6ba52f4d07c90d9b47 /engines/saga/interface.cpp | |
parent | ea251afbb7dcee4de2c6f99d223480841c89ed40 (diff) | |
download | scummvm-rg350-03d7990a341a5c05d2b23b073620159d3fe15a0f.tar.gz scummvm-rg350-03d7990a341a5c05d2b23b073620159d3fe15a0f.tar.bz2 scummvm-rg350-03d7990a341a5c05d2b23b073620159d3fe15a0f.zip |
Some updates to the psychic profile in IHNM. sfPsychicProfileOff has been enabled again
svn-id: r28361
Diffstat (limited to 'engines/saga/interface.cpp')
-rw-r--r-- | engines/saga/interface.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/engines/saga/interface.cpp b/engines/saga/interface.cpp index c7054436d9..941262e10e 100644 --- a/engines/saga/interface.cpp +++ b/engines/saga/interface.cpp @@ -369,18 +369,18 @@ int Interface::deactivate() { } void Interface::rememberMode() { - assert (_savedMode == -1); + debug(1, "rememberMode(%d)", _savedMode); _savedMode = _panelMode; - - debug(1, "rememberMode(%d)", _savedMode); } void Interface::restoreMode(bool draw_) { - assert (_savedMode != -1); - debug(1, "restoreMode(%d)", _savedMode); + // If _savedMode is -1 by a race condition, set it to kPanelMain + if (_savedMode == -1) + _savedMode = kPanelMain; + _panelMode = _savedMode; _savedMode = -1; |