mirror of
https://github.com/isledecomp/isle.git
synced 2025-12-10 16:13:02 +00:00
Implement MxDSSelectAction Clone/operator=/CopyFrom (#154)
This commit is contained in:
committed by
GitHub
parent
e6507b874a
commit
4a674d823b
@@ -56,14 +56,14 @@ void MxString::ToLowerCase()
|
||||
}
|
||||
|
||||
// OFFSET: LEGO1 0x100ae4b0
|
||||
MxString &MxString::operator=(MxString *param)
|
||||
MxString &MxString::operator=(MxString ¶m)
|
||||
{
|
||||
if (this->m_data != param->m_data)
|
||||
if (this->m_data != param.m_data)
|
||||
{
|
||||
delete[] this->m_data;
|
||||
this->m_length = param->m_length;
|
||||
this->m_length = param.m_length;
|
||||
this->m_data = new char[this->m_length + 1];
|
||||
strcpy(this->m_data, param->m_data);
|
||||
strcpy(this->m_data, param.m_data);
|
||||
}
|
||||
|
||||
return *this;
|
||||
|
||||
Reference in New Issue
Block a user