Attempt to fix server locking up when trying to kick player that has left already

This commit is contained in:
indev committed 2026-07-19 23:41:19 +03:00
1 parent 0acfc96812
commit a132db9e6e
1 file changed
+1 -1
+1 -1
View File
@@ -4003,7 +4003,7 @@ static void Got_KickCmd(const UINT8 **p, INT32 playernum)
}
// without this the server will remove itself and thus self destruct on dedicated
if (server && (playernode[pnum] == UINT8_MAX || !nodeingame[playernode[pnum]]))
if (server && !playeringame[pnum])
{
CONS_Alert(CONS_WARNING, M_GetText("Attempting to kick player %d which is not in game received from %s\n"), pnum, player_names[playernum]);
return;