aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche/avalanche.cpp
diff options
context:
space:
mode:
authorurukgit2013-11-05 20:45:50 +0100
committerurukgit2013-11-05 20:45:50 +0100
commite9c5265d45dd83913fb4d65b8980fbf504252ff7 (patch)
treebf1b6f1260cd02f8be572a63f0397c82e14e4e02 /engines/avalanche/avalanche.cpp
parentbb018a908c2dbce8e7f1009ffe9e3581c307dbbc (diff)
downloadscummvm-rg350-e9c5265d45dd83913fb4d65b8980fbf504252ff7.tar.gz
scummvm-rg350-e9c5265d45dd83913fb4d65b8980fbf504252ff7.tar.bz2
scummvm-rg350-e9c5265d45dd83913fb4d65b8980fbf504252ff7.zip
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.
Diffstat (limited to 'engines/avalanche/avalanche.cpp')
-rw-r--r--engines/avalanche/avalanche.cpp3
1 files changed, 1 insertions, 2 deletions
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;