Fix break logic in STObject::parseJson for arrays.

This commit is contained in:
JoelKatz
2013-11-16 18:57:08 -08:00
parent 1fc8f0a33b
commit 4e4942e357

View File

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