mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Fix break logic in STObject::parseJson for arrays.
This commit is contained in:
@@ -1563,7 +1563,7 @@ UPTR_T<STObject> STObject::parseJson (const Json::Value& object, SField::ref inN
|
||||
STArray* tail = dynamic_cast<STArray*> (&data.back ());
|
||||
assert (tail);
|
||||
|
||||
for (Json::UInt i = 0; !object.isValidIndex (i); ++i)
|
||||
for (Json::UInt i = 0; object.isValidIndex (i); ++i)
|
||||
tail->push_back (*STObject::parseJson (object[i], sfGeneric, depth + 1));
|
||||
}
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user