mirror of
https://github.com/syoyo/tinygltf.git
synced 2026-10-11 03:15:38 +00:00
Merge pull request #157 from Selmar/patch-1
correct Value::Equals mistake
This commit is contained in:
@@ -1213,7 +1213,7 @@ static bool Equals(const tinygltf::Value &one, const tinygltf::Value &other) {
|
|||||||
case ARRAY_TYPE: {
|
case ARRAY_TYPE: {
|
||||||
if (one.Size() != other.Size()) return false;
|
if (one.Size() != other.Size()) return false;
|
||||||
for (int i = 0; i < int(one.Size()); ++i)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
case STRING_TYPE:
|
case STRING_TYPE:
|
||||||
|
|||||||
Reference in New Issue
Block a user