mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-02-27 07:51:36 +00:00
Don't allocate memory for net commands already executed, as it would cause them to be never freed
This commit is contained in:
parent
fb6c96de00
commit
64a108e24a
1 changed files with 2 additions and 1 deletions
|
|
@ -3984,7 +3984,8 @@ FILESTAMP
|
|||
INT32 k = *txtpak++; // playernum
|
||||
const size_t txtsize = txtpak[0]+1;
|
||||
|
||||
M_Memcpy(D_GetTextcmd(i, k), txtpak, txtsize);
|
||||
if (i >= gametic) // Don't copy old net commands
|
||||
M_Memcpy(D_GetTextcmd(i, k), txtpak, txtsize);
|
||||
txtpak += txtsize;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue