It's probably bad to allocate exponential memory

This commit is contained in:
AJ Martinez 2023-04-11 23:11:23 -07:00
parent 2426170e0b
commit 2b8f71bec5

View file

@ -53,7 +53,7 @@ static void SV_ExpandStats(size_t needed)
while (numallocated < needed)
{
numallocated *= numtracked;
numallocated *= 2;
trackedList = Z_Realloc(
trackedList,
sizeof(serverplayer_t) * numallocated,