Browse Source

Make a value copy of the node IDs when resolving. Potential solution for #1576.

Lasse Öörni 9 years ago
parent
commit
32ef767485
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/Urho3D/Scene/SceneResolver.cpp

+ 1 - 1
Source/Urho3D/Scene/SceneResolver.cpp

@@ -118,7 +118,7 @@ void SceneResolver::Resolve()
             else if (info.mode_ & AM_NODEIDVECTOR)
             {
                 hasIDAttributes = true;
-                const VariantVector& oldNodeIDs = component->GetAttribute(j).GetVariantVector();
+                VariantVector oldNodeIDs = component->GetAttribute(j).GetVariantVector();
 
                 if (oldNodeIDs.Size())
                 {