From 82b1769759e07f3322c74133cbe036597f9ea9cf Mon Sep 17 00:00:00 2001 From: Kim Kulling Date: Thu, 19 Jan 2017 13:38:06 +0100 Subject: [PATCH] Fix new call. --- code/scene.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/scene.cpp b/code/scene.cpp index d266170e2..fe95b3ae4 100644 --- a/code/scene.cpp +++ b/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];