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

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: