mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-18 17:00:21 +02:00
Make sure to set m_data.containerValue when copying the value
This commit is contained in:
1 file changed
+5
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user