Fix warning: inline function 'MxStreamerSubClass1::MxStreamerSubClass1(undefined4)' used but never defined

This commit is contained in:
Anonymous Maarten 2024-01-06 20:32:22 +01:00
parent e878b4b9d4
commit d739025519
2 changed files with 8 additions and 12 deletions

View File

@ -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;
}
}

View File

@ -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; }