diff options
author | Eugene Sandulenko | 2013-10-29 09:58:36 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2013-10-29 09:58:36 +0200 |
commit | dc91eafdadd2e8d1c1b0a863b6e77b187c53d358 (patch) | |
tree | df58267786b980d51e6aaa2f9e0e6799f0ece722 | |
parent | ba99c3d3b6979fecd12109b62a62f9eb7e3a9b61 (diff) | |
download | scummvm-rg350-dc91eafdadd2e8d1c1b0a863b6e77b187c53d358.tar.gz scummvm-rg350-dc91eafdadd2e8d1c1b0a863b6e77b187c53d358.tar.bz2 scummvm-rg350-dc91eafdadd2e8d1c1b0a863b6e77b187c53d358.zip |
DREAMWEB: More unitialized variables. CID 1003402
-rw-r--r-- | engines/dreamweb/dreamweb.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp index 6c6f5296f4..a91e41ea67 100644 --- a/engines/dreamweb/dreamweb.cpp +++ b/engines/dreamweb/dreamweb.cpp @@ -232,6 +232,15 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam _hasSpeech = 0; _roomsSample = 0; _copyProtection = 0; + + for (uint i = 0; i < 128; i++) + memset(&_setDat[i], 0, sizeof(SetObject)); + + for (uint i = 0; i < 80; i++) + memset(&_freeDat[i], 0, sizeof(DynObject)); + + for (uint i = 0; i < kNumExObjects; i++) + memset(&_exData[i], 0, sizeof(DynObject)); } DreamWebEngine::~DreamWebEngine() { |