Merge pull request #157 from Selmar/patch-1

correct Value::Equals mistake
This commit is contained in:
Syoyo Fujita 2019-04-17 03:19:00 +09:00 committed by GitHub
commit fb9f709166
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1213,7 +1213,7 @@ static bool Equals(const tinygltf::Value &one, const tinygltf::Value &other) {
case ARRAY_TYPE: {
if (one.Size() != other.Size()) return false;
for (int i = 0; i < int(one.Size()); ++i)
if (Equals(one.Get(i), other.Get(i))) return false;
if (!Equals(one.Get(i), other.Get(i))) return false;
return true;
}
case STRING_TYPE: