Added initialization for demo writer packet buffer

This commit is contained in:
Jordan Cristiano 2015-07-13 23:10:57 -04:00
parent f5d8d9bbf1
commit 11ed4883cb

View File

@ -59,6 +59,7 @@ IDemoWriter* IDemoWriter::CreateDemoWriter(void* outputFp)
DemoWriter::DemoWriter(FILE* outputFp): DemoWriter::DemoWriter(FILE* outputFp):
m_writer(outputFp), m_writer(outputFp),
m_cmdPacketBuf(),
m_packetBuffer(new uint8_t[NET_MAX_PAYLOAD]) m_packetBuffer(new uint8_t[NET_MAX_PAYLOAD])
{ {
m_cmdPacketBuf.StartWriting(m_packetBuffer.get(), NET_MAX_PAYLOAD); m_cmdPacketBuf.StartWriting(m_packetBuffer.get(), NET_MAX_PAYLOAD);