mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-01-14 22:00:50 +00:00
Merge pull request #231 from LJSonik/net-command-leak-fix
Fix net commands not always being freed
This commit is contained in:
commit
4cbe2e1622
1 changed files with 2 additions and 1 deletions
|
@ -3984,6 +3984,7 @@ FILESTAMP
|
||||||
INT32 k = *txtpak++; // playernum
|
INT32 k = *txtpak++; // playernum
|
||||||
const size_t txtsize = txtpak[0]+1;
|
const size_t txtsize = txtpak[0]+1;
|
||||||
|
|
||||||
|
if (i >= gametic) // Don't copy old net commands
|
||||||
M_Memcpy(D_GetTextcmd(i, k), txtpak, txtsize);
|
M_Memcpy(D_GetTextcmd(i, k), txtpak, txtsize);
|
||||||
txtpak += txtsize;
|
txtpak += txtsize;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue