mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-14 08:30:50 +00:00
- Fixed: FArchive::m_NameHash was never initialized.
SVN r2791 (scripting)
This commit is contained in:
parent
99670b708c
commit
7e60ac1fb8
1 changed files with 4 additions and 0 deletions
|
@ -657,6 +657,10 @@ void FArchive::AttachToFile (FFile &file)
|
||||||
ObjectToArchive.Clear();
|
ObjectToArchive.Clear();
|
||||||
ArchiveToObject.Clear();
|
ArchiveToObject.Clear();
|
||||||
|
|
||||||
|
memset(m_NameHash, 0xFF, sizeof(m_NameHash));
|
||||||
|
m_Names.Clear();
|
||||||
|
m_NameStorage.Clear();
|
||||||
|
|
||||||
m_NumSprites = 0;
|
m_NumSprites = 0;
|
||||||
m_SpriteMap = new int[sprites.Size()];
|
m_SpriteMap = new int[sprites.Size()];
|
||||||
for (size_t s = 0; s < sprites.Size(); ++s)
|
for (size_t s = 0; s < sprites.Size(); ++s)
|
||||||
|
|
Loading…
Reference in a new issue