diff --git a/src/g_shared/a_action.cpp b/src/g_shared/a_action.cpp index c283b5720..1149bc2c3 100644 --- a/src/g_shared/a_action.cpp +++ b/src/g_shared/a_action.cpp @@ -350,7 +350,6 @@ CUSTOM_CVAR(Int, sv_corpsequeuesize, 64, CVAR_ARCHIVE|CVAR_SERVERINFO) while (first != NULL && first->Count > (DWORD)self) { DCorpsePointer *next = iterator.Next (); - next->Count = first->Count; first->Destroy (); first = next; } @@ -373,9 +372,8 @@ DCorpsePointer::DCorpsePointer (AActor *ptr) if (first->Count >= (DWORD)sv_corpsequeuesize) { DCorpsePointer *next = iterator.Next (); - next->Count = first->Count; first->Destroy (); - return; + first = next; } } ++first->Count;