make clc_move::toString not assign 1kb for no reason

This commit is contained in:
BenCat07 2020-05-22 23:12:47 +02:00
parent 92046f22d8
commit 2ecb2ac24c

View File

@ -20,8 +20,6 @@ bf_write::bf_write()
m_pDebugName = NULL;
}
static char s_text[1024];
unsigned long g_LittleBits[32];
// Precalculated bit masks for WriteUBitLong. Using these tables instead of
@ -500,8 +498,7 @@ const char *CLC_ListenEvents::ToString(void) const
const char *CLC_Move::ToString(void) const
{
Q_snprintf(s_text, sizeof(s_text), "%s: backup %i, new %i, bytes %i", GetName(), m_nNewCommands, m_nBackupCommands, Bits2Bytes(m_nLength));
return s_text;
return "";
}
bool CLC_Move::WriteToBuffer(bf_write &buffer)