fix overflow stuffs

This commit is contained in:
Alug committed 2024-03-10 03:43:21 +01:00
1 parent 527e436d57
commit 5838e60bf6
2 files changed
+574 -571

No files matched your search

+573 -570
View File
File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -1618,7 +1618,7 @@ static void SV_SendPlayerInfo(INT32 node)
continue;
}
if (!playeringame[i])
if (playeringame[i] == UINT8_MAX || !playeringame[i])
{
netbuffer->u.playerinfo[i].node = 255; // This slot is empty.
continue;