Make sure to set m_data.containerValue when copying the value

This commit is contained in:
smallmodel committed 2023-08-17 17:39:26 +02:00
1 parent 2c9c80d7bc
commit 23e01fc1a7
1 file changed
+5 -1
+5 -1
View File
@@ -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);