From d7a4a12b67755f258f3d60eadc9f9bd555ad119f Mon Sep 17 00:00:00 2001 From: Strangerke Date: Fri, 19 Apr 2013 00:21:37 +0200 Subject: HUGO: Initialize variables in Hugo engine constructor. CID 1002886 --- engines/hugo/hugo.cpp | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/engines/hugo/hugo.cpp b/engines/hugo/hugo.cpp index 9d28e0ac69..bcf06055f8 100644 --- a/engines/hugo/hugo.cpp +++ b/engines/hugo/hugo.cpp @@ -66,6 +66,33 @@ HugoEngine::HugoEngine(OSystem *syst, const HugoGameDescription *gd) : Engine(sy _console = new HugoConsole(this); _rnd = 0; + + _screen = NULL; + _mouse = NULL; + _inventory = NULL; + _parser = NULL; + _route = NULL; + _sound = NULL; + _intro = NULL; + _object = NULL; + _text = NULL; + _topMenu = NULL; + _status._storyModeFl = false; + _status._gameOverFl = false; + _status._lookFl = false; + _status._recallFl = false; + _status._newScreenFl = false; + _status._godModeFl = false; + _status._showBoundariesFl = false; + _status._doQuitFl = false; + _status._skipIntroFl = false; + _status._helpFl = false; + _status._tick = 0; + _status._viewState = kViewIntroInit; + _status._song = 0; + _gameType = kGameTypeNone; + _platform = Common::kPlatformUnknown; + _packedFl = false; } HugoEngine::~HugoEngine() { -- cgit v1.2.3