fix OOB read of "playeringame"
not too sure if this is completely save, but it should technically
This commit is contained in:
1 parent
ac85797a4f
commit
086caa80bb
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user