mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-31 05:30:48 +00:00
Remove mobj interp. on early-free in P_RemoveMobj
Fixes a crash that occurred frequently in special stages/NiGHTS.
This commit is contained in:
parent
153def463f
commit
5bb7a527a1
1 changed files with 1 additions and 0 deletions
|
@ -11153,6 +11153,7 @@ void P_RemoveMobj(mobj_t *mobj)
|
|||
INT32 prevreferences;
|
||||
if (!mobj->thinker.references)
|
||||
{
|
||||
R_RemoveMobjInterpolator(mobj);
|
||||
Z_Free(mobj); // No refrrences? Can be removed immediately! :D
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue