From bb5495f99a7835bc2bdcfe2dc68fb086f67defec Mon Sep 17 00:00:00 2001 From: Turo Lamminen Date: Tue, 19 Dec 2017 19:39:04 +0200 Subject: [PATCH] Q3BSP: Add assertion to silence a static analyzer warning --- code/Q3BSPFileImporter.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/code/Q3BSPFileImporter.cpp b/code/Q3BSPFileImporter.cpp index 9d6d8e870..0cdafae42 100644 --- a/code/Q3BSPFileImporter.cpp +++ b/code/Q3BSPFileImporter.cpp @@ -447,6 +447,7 @@ void Q3BSPFileImporter::createTriangleTopology( const Q3BSP::Q3BSPModel *pModel, pMesh->mTextureCoords[ 0 ][ rVertIdx ].Set( pVertex->vTexCoord.x, pVertex->vTexCoord.y, 0.0f ); pMesh->mTextureCoords[ 1 ][ rVertIdx ].Set( pVertex->vLightmap.x, pVertex->vLightmap.y, 0.0f ); + ai_assert( m_pCurrentFace ); m_pCurrentFace->mIndices[ idx ] = rVertIdx; rVertIdx++;