Fix game crashing when using P_DoPlayerExit on player without mobj

This commit is contained in:
indev authored and Alug committed 2024-10-13 14:44:58 +02:00
1 parent d601975597
commit a7d6c0994f
1 file changed
+1 -1
+1 -1
View File
@@ -1210,7 +1210,7 @@ void P_DoPlayerExit(player_t *player)
player->exiting = raceexittime+2;
K_KartUpdatePosition(player);
if (cv_kartvoices.value)
if (!P_MobjWasRemoved(player->mo) && cv_kartvoices.value)
{
if (P_IsLocalPlayer(player))
{