Explorar o código

Fix new call.

Kim Kulling %!s(int64=8) %!d(string=hai) anos
pai
achega
82b1769759
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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];