isle/LEGO1/mxdschunk.cpp
Misha 20daddde32
implement MxDSBuffer object creation (#340)
* push changes

* Update mxstreamcontroller.cpp

* fix build

* MxStreamChunk

* fix format

* Match functions

* Add a comment

---------

Co-authored-by: Christian Semmler <mail@csemmler.com>
2023-12-17 18:24:39 +01:00

21 lines
304 B
C++

#include "mxdschunk.h"
DECOMP_SIZE_ASSERT(MxDSChunk, 0x1c);
// FUNCTION: LEGO1 0x100be050
MxDSChunk::MxDSChunk()
{
m_flags = 0;
m_data = NULL;
m_objectId = -1;
m_time = 0;
m_length = 0;
}
// FUNCTION: LEGO1 0x100be170
MxDSChunk::~MxDSChunk()
{
if (m_flags & Flag_Bit1) {
delete[] m_data;
}
}