Merge pull request #381 from jdduke/fix_bsp_null_check

Fix null check in Q3BSPFileImporter
pull/383/head
Alexander Gessler 2014-09-12 23:08:56 -07:00
commit 875e65a86a
1 changed files with 7 additions and 7 deletions

View File

@ -651,7 +651,7 @@ bool Q3BSPFileImporter::importTextureFromArchive( const Q3BSP::Q3BSPModel *pMode
std::string textureName, ext;
if ( expandFile( pArchive, pTexture->strName, supportedExtensions, textureName, ext ) ) {
IOStream *pTextureStream = pArchive->Open( textureName.c_str() );
if ( !pTextureStream ) {
if ( pTextureStream ) {
size_t texSize = pTextureStream->FileSize();
aiTexture *pTexture = new aiTexture;
pTexture->mHeight = 0;