浏览代码

Fix new call.

Kim Kulling 8 年之前
父节点
当前提交
82b1769759
共有 1 个文件被更改,包括 1 次插入1 次删除
  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];