aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorEugene Sandulenko2013-11-09 12:59:38 +0200
committerEugene Sandulenko2013-11-09 12:59:38 +0200
commit986369bcb558790af8ebe4708117c45d23bd7dca (patch)
tree932035c18eabc7b805c324918b9dfd2be33f4d96 /engines
parentfe678370770d3aeadbd8250e97d497898a8e8857 (diff)
downloadscummvm-rg350-986369bcb558790af8ebe4708117c45d23bd7dca.tar.gz
scummvm-rg350-986369bcb558790af8ebe4708117c45d23bd7dca.tar.bz2
scummvm-rg350-986369bcb558790af8ebe4708117c45d23bd7dca.zip
DREAMWEB: Initialize struct contents. CID 1003402
Diffstat (limited to 'engines')
-rw-r--r--engines/dreamweb/dreamweb.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/engines/dreamweb/dreamweb.cpp b/engines/dreamweb/dreamweb.cpp
index a91e41ea67..7323dfc4a8 100644
--- a/engines/dreamweb/dreamweb.cpp
+++ b/engines/dreamweb/dreamweb.cpp
@@ -241,6 +241,33 @@ DreamWebEngine::DreamWebEngine(OSystem *syst, const DreamWebGameDescription *gam
for (uint i = 0; i < kNumExObjects; i++)
memset(&_exData[i], 0, sizeof(DynObject));
+
+ memset(&_vars, 0, sizeof(GameVars));
+
+ for (uint i = 0; i < 96; i++)
+ memset(&_backdropFlags[i], 0, sizeof(BackdropMapFlag));
+
+ for (uint i = 0; i < kNumReelRoutines+1; i++)
+ memset(&_reelRoutines[i], 0, sizeof(ReelRoutine));
+
+ _personData = 0;
+
+ for (uint i = 0; i < 16; i++)
+ memset(&_openInvList[i], 0, sizeof(ObjectRef));
+
+ for (uint i = 0; i < 30; i++)
+ memset(&_ryanInvList[i], 0, sizeof(ObjectRef));
+
+ for (uint i = 0; i < 11*10; i++)
+ memset(&_mapFlags[i], 0, sizeof(MapFlag));
+
+ for (uint i = 0; i < kNumChanges; i++)
+ memset(&_listOfChanges[i], 0, sizeof(Change));
+
+ _currentCharset = 0;
+
+ for (uint i = 0; i < 36; i++)
+ memset(&_pathData[i], 0, sizeof(RoomPaths));
}
DreamWebEngine::~DreamWebEngine() {