diff options
author | Paul Gilbert | 2013-12-13 22:10:39 -0500 |
---|---|---|
committer | Paul Gilbert | 2013-12-13 22:10:39 -0500 |
commit | f2b8c518811998bd05b59c332092dc6fa28024b4 (patch) | |
tree | 6c9a59914f4259a11787526464940adf42047d87 | |
parent | 09b22952ce6d108ae5063c79a2e08bcddda1fc6c (diff) | |
download | scummvm-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.cpp | 1 |
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]); |