mirror of
https://github.com/DrBeef/Raze.git
synced 2025-02-20 18:52:43 +00:00
- fixed uninitialized ObjectList.
This needs to clear each entry each time it is allocated for use. The object where this frequently caused problems is the drum being spawned by the Anubis drummers.
This commit is contained in:
parent
75b8a0579e
commit
2397bf48f2
1 changed files with 1 additions and 0 deletions
|
@ -1964,6 +1964,7 @@ int BuildObject(int const nSprite, int nOjectType, int nHitag)
|
|||
auto spr = &sprite[nSprite];
|
||||
|
||||
auto nObject = ObjectList.Reserve(1);
|
||||
ObjectList[nObject] = {};
|
||||
|
||||
changespritestat(nSprite, ObjectStatnum[nOjectType]);
|
||||
|
||||
|
|
Loading…
Reference in a new issue