diff options
author | urukgit | 2013-10-15 22:24:44 +0200 |
---|---|---|
committer | Willem Jan Palenstijn | 2013-10-17 22:16:24 +0200 |
commit | 964fd22e4aebb30f22ff6358ea7140dec28c5d9a (patch) | |
tree | f91a529b68ce7c4ce015ed2277b973f20fe41c9e /engines | |
parent | f24267874e73c615bedcdf7a5743537803892e2e (diff) | |
download | scummvm-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.
Diffstat (limited to 'engines')
-rw-r--r-- | engines/avalanche/avalanche.cpp | 2 |
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; |