Sfoglia il codice sorgente

ASE: Add assertion to silence a static analyzer warning

Turo Lamminen 7 anni fa
parent
commit
4c9f169109
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      code/ASELoader.cpp

+ 1 - 0
code/ASELoader.cpp

@@ -1021,6 +1021,7 @@ void ASEImporter::ConvertMeshes(ASE::Mesh& mesh, std::vector<aiMesh*>& avOutMesh
 
 
                             // convert bones, if existing
                             // convert bones, if existing
                             if (!mesh.mBones.empty()) {
                             if (!mesh.mBones.empty()) {
+                                ai_assert(avOutputBones);
                                 // check whether there is a vertex weight for this vertex index
                                 // check whether there is a vertex weight for this vertex index
                                 if (iIndex2 < mesh.mBoneVertices.size())    {
                                 if (iIndex2 < mesh.mBoneVertices.size())    {