mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-11 01:02:16 +00:00
It's probably bad to allocate exponential memory
This commit is contained in:
parent
2426170e0b
commit
2b8f71bec5
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue