aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Gilbert2013-12-13 22:10:39 -0500
committerPaul Gilbert2013-12-13 22:10:39 -0500
commitf2b8c518811998bd05b59c332092dc6fa28024b4 (patch)
tree6c9a59914f4259a11787526464940adf42047d87
parent09b22952ce6d108ae5063c79a2e08bcddda1fc6c (diff)
downloadscummvm-rg350-f2b8c518811998bd05b59c332092dc6fa28024b4.tar.gz
scummvm-rg350-f2b8c518811998bd05b59c332092dc6fa28024b4.tar.bz2
scummvm-rg350-f2b8c518811998bd05b59c332092dc6fa28024b4.zip
VOYEUR: Added extra initialisation for ControlResource objects
-rw-r--r--engines/voyeur/files.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/engines/voyeur/files.cpp b/engines/voyeur/files.cpp
index c725169140..61c5e4295e 100644
--- a/engines/voyeur/files.cpp
+++ b/engines/voyeur/files.cpp
@@ -1342,6 +1342,7 @@ ControlResource::ControlResource(BoltFilesState &state, const byte *src) {
uint32 *idP = (uint32 *)&src[0x10];
int count = READ_LE_UINT16(&src[0x36]);
+ Common::fill(&_entries[0], &_entries[8], (byte *)nullptr);
for (int i = 0; i < count; ++i, ++idP) {
uint32 id = READ_LE_UINT32(idP);
state._curLibPtr->resolveIt(id, &_entries[i]);