mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed crash with corpse queueing.
This commit is contained in:
parent
1ee9256842
commit
259e3127fe
1 changed files with 9 additions and 6 deletions
|
@ -125,6 +125,8 @@ DCorpsePointer::DCorpsePointer (AActor *ptr)
|
|||
TThinkerIterator<DCorpsePointer> iterator (STAT_CORPSEPOINTER);
|
||||
DCorpsePointer *first = iterator.Next ();
|
||||
|
||||
if (first != nullptr)
|
||||
{
|
||||
if (first != this)
|
||||
{
|
||||
if (first->Count >= (uint32_t)sv_corpsequeuesize)
|
||||
|
@ -136,6 +138,7 @@ DCorpsePointer::DCorpsePointer (AActor *ptr)
|
|||
}
|
||||
++first->Count;
|
||||
}
|
||||
}
|
||||
|
||||
void DCorpsePointer::OnDestroy ()
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue