mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
fixup! Fix segfault when trying to access mo->player->mo from SpawnMobj hook
This commit is contained in:
parent
fe75a21bef
commit
d0277b1799
1 changed files with 0 additions and 1 deletions
|
@ -11784,7 +11784,6 @@ void P_SpawnPlayer(INT32 playernum)
|
|||
// MT_PLAYER cannot be removed, so this shouldn't be able to return NULL.
|
||||
mobj = P_SpawnMobj(0, 0, 0, MT_PLAYER, p);
|
||||
I_Assert(mobj != NULL);
|
||||
p->mo = mobj;
|
||||
|
||||
mobj->angle = 0;
|
||||
|
||||
|
|
Loading…
Reference in a new issue