Fix new call.

pull/1146/head
Kim Kulling 2017-01-19 13:38:06 +01:00
parent 35b95ba710
commit 82b1769759
1 changed files with 1 additions and 1 deletions

View File

@ -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];