diff --git a/src/d_clisrv.c b/src/d_clisrv.c index b66e35ab6..07cb54ecd 100644 --- a/src/d_clisrv.c +++ b/src/d_clisrv.c @@ -3347,7 +3347,7 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason) // remove avatar of player playeringame[playernum] = false; playernode[playernum] = UINT8_MAX; - while (!playeringame[doomcom->numslots-1] && doomcom->numslots > 1) + while ((doomcom->numslots > 1) && !playeringame[doomcom->numslots-1]) doomcom->numslots--; // Reset the name