size_t cannot be less than 0

pull/2621/head
Gordon MacPherson 2019-08-27 15:15:40 +01:00 committed by GitHub
parent 7e12257ebc
commit ad971468ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}