ImproveCacheLocality: Add assertion to silence a static analyzer warning

pull/1498/head
Turo Lamminen 2017-10-24 19:51:12 +03:00
parent c774e864a0
commit 95f2319b41
1 changed files with 1 additions and 0 deletions

View File

@ -223,6 +223,7 @@ float ImproveCacheLocalityProcess::ProcessMesh( aiMesh* pMesh, unsigned int mesh
iMaxRefTris = std::max(iMaxRefTris,*piCur);
}
}
ai_assert(iMaxRefTris > 0);
unsigned int* piCandidates = new unsigned int[iMaxRefTris*3];
unsigned int iCacheMisses = 0;