Skip to content

Commit

Permalink
AVALANCHE: Repair initVariables(), restore the call of it.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
urukgit committed Nov 5, 2013
1 parent bb018a9 commit e9c5265
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions engines/avalanche/avalanche.cpp
Expand Up @@ -57,6 +57,7 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription *
_sound = nullptr;

_platform = gd->desc.platform;
initVariables();
}

AvalancheEngine::~AvalancheEngine() {
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit e9c5265

Please sign in to comment.