diff --git a/LEGO1/mxstreamer.cpp b/LEGO1/mxstreamer.cpp index b13d3db0..c3f296bb 100644 --- a/LEGO1/mxstreamer.cpp +++ b/LEGO1/mxstreamer.cpp @@ -203,14 +203,3 @@ MxLong MxStreamer::Notify(MxParam& p_param) return 0; } - -// No offset, function is always inlined -MxStreamerSubClass1::MxStreamerSubClass1(undefined4 p_size) -{ - m_buffer = NULL; - m_size = p_size; - undefined4* ptr = &m_unk0x08; - for (int i = 0; i >= 0; i--) { - ptr[i] = 0; - } -} diff --git a/LEGO1/mxstreamer.h b/LEGO1/mxstreamer.h index e76f0e36..05124d97 100644 --- a/LEGO1/mxstreamer.h +++ b/LEGO1/mxstreamer.h @@ -14,7 +14,14 @@ // STL. But I haven't figured out what yet (it's definitely not a vector). class MxStreamerSubClass1 { public: - inline MxStreamerSubClass1(undefined4 p_size); + inline MxStreamerSubClass1(undefined4 p_size) { + m_buffer = NULL; + m_size = p_size; + undefined4* ptr = &m_unk0x08; + for (int i = 0; i >= 0; i--) { + ptr[i] = 0; + } + } ~MxStreamerSubClass1() { delete[] m_buffer; }