VOYEUR: Added extra initialisation for ControlResource objects

This commit is contained in:
Paul Gilbert 2013-12-13 22:10:39 -05:00
parent 09b22952ce
commit f2b8c51881

View File

@ -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]);