|
@@ -598,6 +598,9 @@ aiNode* AC3DImporter::ConvertObjectSection(Object& object,
|
|
face.mIndices[i] = cur++;
|
|
face.mIndices[i] = cur++;
|
|
|
|
|
|
// copy vertex positions
|
|
// copy vertex positions
|
|
|
|
+ if ((vertices - mesh->mVertices) >= mesh->mNumVertices) {
|
|
|
|
+ throw DeadlyImportError("AC3D: Invalid number of vertices");
|
|
|
|
+ }
|
|
*vertices = object.vertices[entry.first] + object.translation;
|
|
*vertices = object.vertices[entry.first] + object.translation;
|
|
|
|
|
|
|
|
|