Skip to content

Commit

Permalink
AVALANCHE: Fix CID 1109674
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke committed Nov 3, 2013
1 parent fbd365b commit c24ba38
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
16 changes: 16 additions & 0 deletions engines/avalanche/avalanche.cpp
Expand Up @@ -43,6 +43,21 @@ AvalancheEngine::AvalancheEngine(OSystem *syst, const AvalancheGameDescription *
_rnd->setSeed(time.tm_sec + time.tm_min + time.tm_hour);
_showDebugLines = false;

_clock = nullptr;
_graphics = nullptr;
_parser = nullptr;
_pingo = nullptr;
_dialogs = nullptr;
_background = nullptr;
_sequence = nullptr;
_timer = nullptr;
_animation = nullptr;
_menu = nullptr;
_closing = nullptr;
_sound = nullptr;

_platform = gd->desc.platform;

initVariables();
}

Expand Down Expand Up @@ -130,6 +145,7 @@ void AvalancheEngine::initVariables() {
_thinkThing = true;
_seeScroll = false;
_currentMouse = 177;
_holdLeftMouse = false;
}

Common::ErrorCode AvalancheEngine::initialize() {
Expand Down
4 changes: 3 additions & 1 deletion engines/avalanche/avalanche.h
Expand Up @@ -55,7 +55,9 @@ class RandomSource;

namespace Avalanche {

struct AvalancheGameDescription;
struct AvalancheGameDescription {
ADGameDescription desc;
};

static const int kSavegameVersion = 1;

Expand Down
4 changes: 0 additions & 4 deletions engines/avalanche/detection.cpp
Expand Up @@ -35,10 +35,6 @@

namespace Avalanche {

struct AvalancheGameDescription {
ADGameDescription desc;
};

uint32 AvalancheEngine::getFeatures() const {
return _gameDescription->desc.flags;
}
Expand Down

0 comments on commit c24ba38

Please sign in to comment.