Improved sanity checking
git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@287 67173fc5-114c-0410-ac8e-9d2fd5bffc1fpull/1/head
parent
0e28e824ae
commit
521fbb977e
|
@ -221,7 +221,7 @@ void B3DImporter::ReadBRUS(){
|
|||
|
||||
for( int i=0;i<n_texs;++i ){
|
||||
int texid=ReadInt();
|
||||
if( !i ){
|
||||
if( !i && texid>=0 && texid<_textures.size() ){
|
||||
//just use tex 0 for now
|
||||
const Texture &tex=_textures[texid];
|
||||
|
||||
|
|
Loading…
Reference in New Issue