aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/saveload_lok.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'engines/kyra/saveload_lok.cpp')
-rw-r--r--engines/kyra/saveload_lok.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/engines/kyra/saveload_lok.cpp b/engines/kyra/saveload_lok.cpp
index bb64057e3f..df12d92660 100644
--- a/engines/kyra/saveload_lok.cpp
+++ b/engines/kyra/saveload_lok.cpp
@@ -208,6 +208,12 @@ Common::Error KyraEngine_LoK::loadGameState(int slot) {
_brandonPosX = _currentCharacter->x2 = _currentCharacter->x1;
_brandonPosY = _currentCharacter->y2 = _currentCharacter->y1;
+ // We need to reset the "_noDrawShapesFlag" flag of Animator_LoK
+ // over here. Else in certain cases restoring an savegame might
+ // result in no shapes being drawn at all. See bug report
+ // #2868581 "KYRA1: Invisible Brandon" for an example of this.
+ _animator->_noDrawShapesFlag = 0;
+
enterNewScene(_currentCharacter->sceneId, _currentCharacter->facing, 0, 0, 1);
_animator->animRefreshNPC(0);