Fix new call.

This commit is contained in:
Kim Kulling
2017-01-19 13:38:06 +01:00
parent 35b95ba710
commit 82b1769759

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