mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-25 05:21:16 +00:00
zero the Entries array on allocation
This commit is contained in:
parent
0be8fed6fc
commit
e1cf8af9d3
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue