Update mxdsobject.cpp

This commit is contained in:
Christian Semmler 2023-06-29 09:17:39 +02:00 committed by GitHub
parent aaf0e8e381
commit 27ad466ce8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -66,8 +66,7 @@ void MxDSObject::SetObjectName(const char *p_name)
// OFFSET: LEGO1 0x100bf950
void MxDSObject::SetSourceName(const char *p_sourceName)
{
if (p_sourceName != this->m_sourceName)
{
if (p_sourceName != this->m_sourceName) {
delete[] this->m_sourceName;
if (p_sourceName) {
@ -125,4 +124,4 @@ void MxDSObject::Parse(char **p_source, unsigned short p_unk24)
*p_source += 4;
this->m_unk24 = p_unk24;
}
}