aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorurukgit2013-10-15 22:24:44 +0200
committerWillem Jan Palenstijn2013-10-17 22:16:24 +0200
commit964fd22e4aebb30f22ff6358ea7140dec28c5d9a (patch)
treef91a529b68ce7c4ce015ed2277b973f20fe41c9e
parentf24267874e73c615bedcdf7a5743537803892e2e (diff)
downloadscummvm-rg350-964fd22e4aebb30f22ff6358ea7140dec28c5d9a.tar.gz
scummvm-rg350-964fd22e4aebb30f22ff6358ea7140dec28c5d9a.tar.bz2
scummvm-rg350-964fd22e4aebb30f22ff6358ea7140dec28c5d9a.zip
AVALANCHE: Fix crash on "With" after loading from Launcher.
The faulty uninitialized variable was _lastPerson. Better to call the whole resetVariables() so hopefully nothing similar will happen from now.
-rw-r--r--engines/avalanche/avalanche.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp
index 29e9d02bb4..4f3868768a 100644
--- a/engines/avalanche/avalanche.cpp
+++ b/engines/avalanche/avalanche.cpp
@@ -352,6 +352,8 @@ bool AvalancheEngine::loadGame(const int16 slot) {
t.tm_mon = f->readSint16LE();
t.tm_year = f->readSint16LE();
+ resetVariables();
+
Common::Serializer sz(f, NULL);
synchronize(sz);
delete f;