mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 21:57:57 +03:00
Make sure to set m_data.containerValue when copying the value
This commit is contained in:
parent
2c9c80d7bc
commit
23e01fc1a7
1 changed files with 5 additions and 1 deletions
|
@ -2058,7 +2058,11 @@ ScriptVariable& ScriptVariable::operator=(const ScriptVariable& variable)
|
|||
case VARIABLE_CONSTARRAY:
|
||||
m_data.constArrayValue = variable.m_data.constArrayValue;
|
||||
m_data.constArrayValue->refCount++;
|
||||
break;
|
||||
break;
|
||||
|
||||
case VARIABLE_CONTAINER:
|
||||
m_data.containerValue = variable.m_data.containerValue;
|
||||
break;
|
||||
|
||||
case VARIABLE_SAFECONTAINER:
|
||||
m_data.safeContainerValue = new SafePtr<ConList>(*variable.m_data.safeContainerValue);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue