aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2013-04-19 00:21:37 +0200
committerStrangerke2013-04-19 00:21:37 +0200
commitd7a4a12b67755f258f3d60eadc9f9bd555ad119f (patch)
tree6da88ee4ea4ef72c5e85bc7558b375694e28eabd
parentcaa04fb8bfbbe9936fe41d01b6215a34b7a6c226 (diff)
downloadscummvm-rg350-d7a4a12b67755f258f3d60eadc9f9bd555ad119f.tar.gz
scummvm-rg350-d7a4a12b67755f258f3d60eadc9f9bd555ad119f.tar.bz2
scummvm-rg350-d7a4a12b67755f258f3d60eadc9f9bd555ad119f.zip
HUGO: Initialize variables in Hugo engine constructor. CID 1002886
-rw-r--r--engines/hugo/hugo.cpp27
1 files changed, 27 insertions, 0 deletions
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() {