diff options
author | strangerke | 2011-04-20 22:22:01 +0200 |
---|---|---|
committer | strangerke | 2011-04-20 22:22:01 +0200 |
commit | c15b858765e9ad606c8e84bdf48744957983a49a (patch) | |
tree | 18509de59bfe84418f26b5815a65593274639507 | |
parent | 3fee10eb604d31aa731362404fc7eaa080032642 (diff) | |
download | scummvm-rg350-c15b858765e9ad606c8e84bdf48744957983a49a.tar.gz scummvm-rg350-c15b858765e9ad606c8e84bdf48744957983a49a.tar.bz2 scummvm-rg350-c15b858765e9ad606c8e84bdf48744957983a49a.zip |
HUGO: Silent several warnings reported by littleboy
-rw-r--r-- | engines/hugo/mouse.cpp | 1 | ||||
-rw-r--r-- | engines/hugo/parser.cpp | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/engines/hugo/mouse.cpp b/engines/hugo/mouse.cpp index 1b2dd588b8..e8926b17c4 100644 --- a/engines/hugo/mouse.cpp +++ b/engines/hugo/mouse.cpp @@ -363,6 +363,7 @@ void MouseHandler::readHotspot(Common::ReadStream &in, hotspot_t &hotspot) { void MouseHandler::loadHotspots(Common::ReadStream &in) { hotspot_t *wrkHotspots = 0; hotspot_t tmp; + memset(&tmp, 0, sizeof(tmp)); for (int varnt = 0; varnt < _vm->_numVariant; varnt++) { int numRows = in.readUint16BE(); if (varnt == _vm->_gameVariant) diff --git a/engines/hugo/parser.cpp b/engines/hugo/parser.cpp index feee4cbadd..9cfdd1a41d 100644 --- a/engines/hugo/parser.cpp +++ b/engines/hugo/parser.cpp @@ -87,6 +87,7 @@ void Parser::readCmd(Common::ReadStream &in, cmd &curCmd) { */ void Parser::loadCmdList(Common::ReadStream &in) { cmd tmpCmd; + memset(&tmpCmd, 0, sizeof(tmpCmd)); for (int varnt = 0; varnt < _vm->_numVariant; varnt++) { uint16 numElem = in.readUint16BE(); if (varnt == _vm->_gameVariant) { @@ -119,6 +120,7 @@ void Parser::readBG(Common::ReadStream &in, background_t &curBG) { */ void Parser::loadBackgroundObjects(Common::ReadStream &in) { background_t tmpBG; + memset(&tmpBG, 0, sizeof(tmpBG)); for (int varnt = 0; varnt < _vm->_numVariant; varnt++) { uint16 numElem = in.readUint16BE(); @@ -145,6 +147,7 @@ void Parser::loadBackgroundObjects(Common::ReadStream &in) { void Parser::loadCatchallList(Common::ReadStream &in) { background_t *wrkCatchallList = 0; background_t tmpBG; + memset(&tmpBG, 0, sizeof(tmpBG)); for (int varnt = 0; varnt < _vm->_numVariant; varnt++) { uint16 numElem = in.readUint16BE(); |