Explorar o código

size_t cannot be less than 0

Gordon MacPherson %!s(int64=6) %!d(string=hai) anos
pai
achega
ad971468ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      code/FBX/FBXMeshGeometry.cpp

+ 1 - 1
code/FBX/FBXMeshGeometry.cpp

@@ -610,7 +610,7 @@ void MeshGeometry::ReadVertexDataMaterials(std::vector<int>& materials_out, cons
     const std::string& ReferenceInformationType)
 {
     const size_t face_count = m_faces.size();
-    if(face_count <= 0)
+    if(face_count == 0)
     {
         return;
     }