- 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:
Christoph Oelckers 2021-10-26 23:52:21 +02:00
parent 75b8a0579e
commit 2397bf48f2

View file

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