mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-22 02:00:11 +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)
|
while (numallocated < needed)
|
||||||
{
|
{
|
||||||
numallocated *= numtracked;
|
numallocated *= 2;
|
||||||
trackedList = Z_Realloc(
|
trackedList = Z_Realloc(
|
||||||
trackedList,
|
trackedList,
|
||||||
sizeof(serverplayer_t) * numallocated,
|
sizeof(serverplayer_t) * numallocated,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue