Merge pull request #231 from LJSonik/net-command-leak-fix

Fix net commands not always being freed
This commit is contained in:
Alam Arias 2018-02-14 10:28:32 -05:00 committed by GitHub
commit 4cbe2e1622
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}
}