From e9c5265d45dd83913fb4d65b8980fbf504252ff7 Mon Sep 17 00:00:00 2001 From: urukgit Date: Tue, 5 Nov 2013 20:45:50 +0100 Subject: AVALANCHE: Repair initVariables(), restore the call of it. We don't have to call resetVariables() here. It's called in newGame() as well as in loadGame(). Calling it here would end up in calling setDirection(), but we didn't even istaniate _animation here yet. --- engines/avalanche/avalanche.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'engines/avalanche/avalanche.cpp') diff --git a/engines/avalanche/avalanche.cpp b/engines/avalanche/avalanche.cpp index aa0d51524d..b45f17886d 100644 --- a/engines/avalanche/avalanche.cpp +++ b/engines/avalanche/avalanche.cpp @@ -57,6 +57,7 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription * _sound = nullptr; _platform = gd->desc.platform; + initVariables(); } AvalancheEngine::~AvalancheEngine() { @@ -88,8 +89,6 @@ AvalancheEngine::~AvalancheEngine() { } void AvalancheEngine::initVariables() { - resetVariables(); - for (int i = 0; i < 31; i++) { _also[i][0] = nullptr; _also[i][1] = nullptr; -- cgit v1.2.3