diff options
Diffstat (limited to 'source/gameengine/Expressions/Value.cpp')
-rw-r--r-- | source/gameengine/Expressions/Value.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/gameengine/Expressions/Value.cpp b/source/gameengine/Expressions/Value.cpp index 1a09123c107..bb9ad81f245 100644 --- a/source/gameengine/Expressions/Value.cpp +++ b/source/gameengine/Expressions/Value.cpp @@ -558,6 +558,10 @@ void CValue::DisableRefCount() void CValue::AddDataToReplica(CValue *replica) { replica->m_refcount = 1; + + //register with Python + _Py_NewReference(replica); + #ifdef _DEBUG //gRefCountValue++; #endif |