aiMesh: fix copy constructor so issue [3572335] (and any further instances of the same pattern in creating face arrays) is resolved.

pull/21/head
Alexander Gessler 2013-03-21 20:17:09 +01:00
parent b4f666083a
commit c016198191
1 changed files with 7 additions and 2 deletions

View File

@ -160,8 +160,13 @@ struct aiFace
delete[] mIndices;
mNumIndices = o.mNumIndices;
if (mNumIndices) {
mIndices = new unsigned int[mNumIndices];
::memcpy( mIndices, o.mIndices, mNumIndices * sizeof( unsigned int));
}
else {
mIndices = NULL;
}
return *this;
}