ASE: Pass a default material name when resizing materials buffer

pull/1732/head
Turo Lamminen 2018-01-23 19:50:20 +02:00
parent 60d78f1701
commit 4b1b5f1b59
1 changed files with 1 additions and 1 deletions

View File

@ -528,7 +528,7 @@ void Parser::ParseLV1MaterialListBlock()
ParseLV4MeshLong(iMaterialCount); ParseLV4MeshLong(iMaterialCount);
// now allocate enough storage to hold all materials // now allocate enough storage to hold all materials
m_vMaterials.resize(iOldMaterialCount+iMaterialCount); m_vMaterials.resize(iOldMaterialCount+iMaterialCount, Material("INVALID"));
continue; continue;
} }
if (TokenMatch(filePtr,"MATERIAL",8)) if (TokenMatch(filePtr,"MATERIAL",8))