aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorThierry Crozat2014-09-13 18:40:30 +0100
committerThierry Crozat2014-09-13 18:40:46 +0100
commitb783d75f83d9f466d84ed3c9db91515f8a976c72 (patch)
tree37d7f70a2f2333726cae3b5c0185b42a68de716f /engines
parent91571387d10cf7b190f1f52a1c995bf675c38263 (diff)
downloadscummvm-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')
-rw-r--r--engines/sword1/sword1.cpp2
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();
}