mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-03 07:41:32 +00:00
Fix buffer overflow in SV_SendPlayerInfo
This commit is contained in:
parent
2450a0df70
commit
fe87760c8c
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static void SV_SendPlayerInfo(INT32 node)
|
||||||
|
|
||||||
for (UINT8 i = 0; i < MAXPLAYERS; i++)
|
for (UINT8 i = 0; i < MAXPLAYERS; i++)
|
||||||
{
|
{
|
||||||
if (!netnodes[playernode[i]].ingame)
|
if (playernode[i] == UINT8_MAX || !netnodes[playernode[i]].ingame)
|
||||||
{
|
{
|
||||||
netbuffer->u.playerinfo[i].num = 255; // This slot is empty.
|
netbuffer->u.playerinfo[i].num = 255; // This slot is empty.
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Reference in a new issue