Fixx out-of-range access in ASE-Parser
- closes https://github.com/assimp/assimp/issues/4495pull/4502/head
parent
458a0314aa
commit
37ec378b60
|
@ -646,7 +646,9 @@ void Parser::ParseLV2MaterialBlock(ASE::Material &mat) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// get a reference to the material
|
// get a reference to the material
|
||||||
Material &sMat = mat.avSubMaterials[iIndex];
|
if (iIndex < mat.avSubMaterials.size()) {
|
||||||
|
Material &sMat = mat.avSubMaterials[iIndex];
|
||||||
|
}
|
||||||
|
|
||||||
// parse the material block
|
// parse the material block
|
||||||
ParseLV2MaterialBlock(sMat);
|
ParseLV2MaterialBlock(sMat);
|
||||||
|
|
Loading…
Reference in New Issue