zero the Entries array on allocation

This commit is contained in:
Christoph Oelckers 2023-12-13 16:57:31 +01:00
parent 0be8fed6fc
commit e1cf8af9d3

View file

@ -274,6 +274,7 @@ void FResourceFile::AllocateEntries(int count)
{ {
NumLumps = count; NumLumps = count;
Entries = (FResourceEntry*)stringpool->Alloc(count * sizeof(FResourceEntry)); Entries = (FResourceEntry*)stringpool->Alloc(count * sizeof(FResourceEntry));
memset(Entries, 0, count * sizeof(FResourceEntry));
} }