diff --git a/code/AssetLib/ASE/ASEParser.cpp b/code/AssetLib/ASE/ASEParser.cpp index 4e381a8e0..f684b56d3 100644 --- a/code/AssetLib/ASE/ASEParser.cpp +++ b/code/AssetLib/ASE/ASEParser.cpp @@ -486,8 +486,9 @@ void Parser::ParseLV1MaterialListBlock() { ParseLV4MeshLong(iIndex); if (iIndex >= iMaterialCount) { - LogWarning("Out of range: material index is too large"); + LogError("Out of range: material index is too large"); iIndex = iMaterialCount - 1; + return; } // get a reference to the material