Please do not go past the doomdata_t space

This commit is contained in:
Alam Arias 2019-03-09 21:57:59 -05:00
parent 4bccc7a69f
commit cbe785d854
2 changed files with 2 additions and 2 deletions

View file

@ -5077,7 +5077,7 @@ static inline void PingUpdate(void)
}
// send the server's maxping as last element of our ping table. This is useful to let us know when we're about to get kicked.
netbuffer->u.pingtable[i++] = cv_maxping.value;
netbuffer->u.pingtable[MAXPLAYERS] = cv_maxping.value;
//send out our ping packets
for (i = 0; i < MAXNETNODES; i++)

View file

@ -453,7 +453,7 @@ typedef struct
plrinfo playerinfo[MAXPLAYERS]; // 1152 bytes (I'd say 36~38)
plrconfig playerconfig[MAXPLAYERS]; // (up to) 896 bytes (welp they ARE)
#ifdef NEWPING
UINT32 pingtable[MAXPLAYERS]; // 128 bytes
UINT32 pingtable[MAXPLAYERS+1]; // 128 bytes
#endif
} u; // This is needed to pack diff packet types data together
} ATTRPACK doomdata_t;