aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2015-08-16 17:32:18 -0400
committerPaul Gilbert2015-08-16 17:32:18 -0400
commit364a60801b361f3180538864c494fa3a24c9620a (patch)
tree9f77355493492bbe32b30c9d17e5f7ca0a2f9bd5 /engines
parent40a5c7881c9b8a665eba67c0f0f27cbb8e1bc0f4 (diff)
downloadscummvm-rg350-364a60801b361f3180538864c494fa3a24c9620a.tar.gz
scummvm-rg350-364a60801b361f3180538864c494fa3a24c9620a.tar.bz2
scummvm-rg350-364a60801b361f3180538864c494fa3a24c9620a.zip
SHERLOCK: RT: Fix occassional crash after loading savegames
Diffstat (limited to 'engines')
-rw-r--r--engines/sherlock/scene.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/engines/sherlock/scene.cpp b/engines/sherlock/scene.cpp
index eaca780d40..b2fe0a2a45 100644
--- a/engines/sherlock/scene.cpp
+++ b/engines/sherlock/scene.cpp
@@ -1200,13 +1200,15 @@ void Scene::transitionToScene() {
int cAnimNum = -1;
- if (hSavedFacing < 101) {
- // Standard info, so set it
- people[HOLMES]._position = hSavedPos;
- people[HOLMES]._sequenceNumber = hSavedFacing;
- } else {
- // It's canimation information
- cAnimNum = hSavedFacing - 101;
+ if (!saves._justLoaded) {
+ if (hSavedFacing < 101) {
+ // Standard info, so set it
+ people[HOLMES]._position = hSavedPos;
+ people[HOLMES]._sequenceNumber = hSavedFacing;
+ } else {
+ // It's canimation information
+ cAnimNum = hSavedFacing - 101;
+ }
}
// Reset positioning for next load