[qw] Clear qtv message buf before writing

I'm not sure this is the right place, but it prevents the packet
overflowing when a qtv proxy connects to a busy server (12+ bots).
This commit is contained in:
Bill Currie 2021-12-27 22:55:29 +09:00
parent 2aae757eff
commit dd17e8120d
1 changed files with 1 additions and 0 deletions

View File

@ -381,6 +381,7 @@ qtv_reliable_send (sv_qtv_t *proxy)
byte *buf = 0;
SV_Printf ("proxy->begun: %d\n", proxy->begun);
SZ_Clear (&proxy->netchan.message);
if (!proxy->begun) {
MSG_WriteByte (&proxy->netchan.message, qtv_packet);
pos = proxy->netchan.message.cursize;