Missing break in STObject::parseJson for arrays.

This commit is contained in:
JoelKatz
2013-11-16 18:55:06 -08:00
parent 1f433dea97
commit 1fc8f0a33b

View File

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