From 964fd22e4aebb30f22ff6358ea7140dec28c5d9a Mon Sep 17 00:00:00 2001 From: urukgit Date: Tue, 15 Oct 2013 22:24:44 +0200 Subject: 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. --- engines/avalanche/avalanche.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'engines') 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; -- cgit v1.2.3