mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Merge branch 'fix-wallspike-segfault' into 'next'
Fix segfault when destroying wall spike while it moves See merge request STJr/SRB2!1959
This commit is contained in:
commit
d6375b1e18
1 changed files with 2 additions and 0 deletions
|
@ -10061,6 +10061,8 @@ static boolean P_FuseThink(mobj_t *mobj)
|
|||
case MT_SPIKE:
|
||||
case MT_WALLSPIKE:
|
||||
P_SetMobjState(mobj, mobj->state->nextstate);
|
||||
if (P_MobjWasRemoved(mobj))
|
||||
return false;
|
||||
mobj->fuse = mobj->spawnpoint ? mobj->spawnpoint->args[0] : mobj->info->speed;
|
||||
break;
|
||||
case MT_NIGHTSCORE:
|
||||
|
|
Loading…
Reference in a new issue