Stop Visual C++ to complain about uninitialized variable

This commit is contained in:
bibendovsky 2014-06-10 10:42:44 +03:00
parent 1ee09e3c20
commit 5d4c165b19

View file

@ -682,7 +682,8 @@ CL_SendCmd(void)
if (cls.netchan.message.cursize ||
(curtime - cls.netchan.last_sent > 100))
{
Netchan_Transmit(&cls.netchan, 0, buf.data);
byte zero_data = 0;
Netchan_Transmit(&cls.netchan, 0, &zero_data);
}
return;