diff --git a/src/p_mobj.c b/src/p_mobj.c index 28dd9304f..4b59b51aa 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -10865,6 +10865,7 @@ mobj_t *P_SpawnMobj(fixed_t x, fixed_t y, fixed_t z, mobjtype_t type, ...) // when spawning MT_PLAYER, set mobj->player before calling MobjSpawn hook to prevent P_RemoveMobj from succeeding on player mobj. va_start(args, type); mobj->player = va_arg(args, player_t *); + mobj->player->mo = mobj; va_end(args); }