Added initialization for demo writer packet buffer
This commit is contained in:
parent
f5d8d9bbf1
commit
11ed4883cb
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user