Browse Source

Fix new call.

Kim Kulling 8 years ago
parent
commit
82b1769759
1 changed files with 1 additions and 1 deletions
  1. 1 1
      code/scene.cpp

+ 1 - 1
code/scene.cpp

@@ -119,7 +119,7 @@ void aiNode::addChildren(unsigned int numChildren, aiNode **children) {
     }
 
     if (mNumChildren > 0) {
-        aiNode **tmp(new aiNode*[mNumChildren]);
+        aiNode **tmp = new aiNode*[mNumChildren];
         ::memcpy(tmp, mChildren, sizeof(aiNode*) * mNumChildren);
         delete[] mChildren;
         mChildren = new aiNode*[mNumChildren + numChildren];