From d4886f892343c522f62b8727c48a47ba662e50f2 Mon Sep 17 00:00:00 2001 From: Alug Date: Wed, 10 Jul 2024 05:45:06 +0200 Subject: [PATCH] forgor this --- src/p_user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/p_user.c b/src/p_user.c index 529838748..74e9ae785 100644 --- a/src/p_user.c +++ b/src/p_user.c @@ -4047,7 +4047,7 @@ boolean P_SpectatorJoinGame(player_t *player) if (player->mo) { P_RemoveMobj(player->mo); - player->mo = NULL; + P_SetTarget(&player->mo, NULL); } player->spectator = false; player->pflags &= ~PF_WANTSTOJOIN;