mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Missing break in STObject::parseJson for arrays.
This commit is contained in:
@@ -1566,6 +1566,7 @@ UPTR_T<STObject> STObject::parseJson (const Json::Value& object, SField::ref inN
|
||||
for (Json::UInt i = 0; !object.isValidIndex (i); ++i)
|
||||
tail->push_back (*STObject::parseJson (object[i], sfGeneric, depth + 1));
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
throw std::runtime_error ("Invalid field type");
|
||||
|
||||
Reference in New Issue
Block a user