diff options
author | Thierry Crozat | 2014-09-13 18:40:30 +0100 |
---|---|---|
committer | Thierry Crozat | 2014-09-13 18:40:46 +0100 |
commit | b783d75f83d9f466d84ed3c9db91515f8a976c72 (patch) | |
tree | 37d7f70a2f2333726cae3b5c0185b42a68de716f /engines/sword1 | |
parent | 91571387d10cf7b190f1f52a1c995bf675c38263 (diff) | |
download | scummvm-rg350-b783d75f83d9f466d84ed3c9db91515f8a976c72.tar.gz scummvm-rg350-b783d75f83d9f466d84ed3c9db91515f8a976c72.tar.bz2 scummvm-rg350-b783d75f83d9f466d84ed3c9db91515f8a976c72.zip |
SWORD1: Add missing update of screen parameters when loading game from GMM
This fixes bug #6728 (crash when loading game from GMM in bull's
head scene). I am not sure the call to Logic::Engine is necessary, but
that way the same sequence of calls is done when restoring a game
from the original GUI and when restoring from GMM.
Diffstat (limited to 'engines/sword1')
-rw-r--r-- | engines/sword1/sword1.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/sword1/sword1.cpp b/engines/sword1/sword1.cpp index 08ea02f32d..1e9b7f70f4 100644 --- a/engines/sword1/sword1.cpp +++ b/engines/sword1/sword1.cpp @@ -774,6 +774,8 @@ void SwordEngine::reinitRes() { _logic->newScreen(Logic::_scriptVars[NEW_SCREEN]); _sound->newScreen(Logic::_scriptVars[NEW_SCREEN]); Logic::_scriptVars[SCREEN] = Logic::_scriptVars[NEW_SCREEN]; + _logic->engine(); + _logic->updateScreenParams(); _screen->fullRefresh(); _screen->draw(); } |