瀏覽代碼

size_t cannot be less than 0

Gordon MacPherson 6 年之前
父節點
當前提交
ad971468ef
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 std::string& ReferenceInformationType)
 {
 {
     const size_t face_count = m_faces.size();
     const size_t face_count = m_faces.size();
-    if(face_count <= 0)
+    if(face_count == 0)
     {
     {
         return;
         return;
     }
     }