Update LEGO1/mxdsobject.cpp

Co-authored-by: Anonymous Maarten <madebr@users.noreply.github.com>
This commit is contained in:
Christian Semmler 2023-06-29 09:13:07 +02:00 committed by GitHub
parent ee97433482
commit aaf0e8e381
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,8 +47,7 @@ MxDSObject &MxDSObject::operator=(MxDSObject &p_dsObject)
// OFFSET: LEGO1 0x100bf8e0
void MxDSObject::SetObjectName(const char *p_name)
{
if (p_name != this->m_objectName)
{
if (p_name != this->m_objectName) {
delete[] this->m_objectName;
if (p_name) {