Fix new call.
parent
35b95ba710
commit
82b1769759
|
@ -119,7 +119,7 @@ void aiNode::addChildren(unsigned int numChildren, aiNode **children) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mNumChildren > 0) {
|
if (mNumChildren > 0) {
|
||||||
aiNode **tmp(new aiNode*[mNumChildren]);
|
aiNode **tmp = new aiNode*[mNumChildren];
|
||||||
::memcpy(tmp, mChildren, sizeof(aiNode*) * mNumChildren);
|
::memcpy(tmp, mChildren, sizeof(aiNode*) * mNumChildren);
|
||||||
delete[] mChildren;
|
delete[] mChildren;
|
||||||
mChildren = new aiNode*[mNumChildren + numChildren];
|
mChildren = new aiNode*[mNumChildren + numChildren];
|
||||||
|
|
Loading…
Reference in New Issue