Fix a JSON buglet.

This commit is contained in:
JoelKatz
2012-10-05 02:44:24 -07:00
parent ffd1f03fe2
commit af5175eeee

View File

@@ -973,6 +973,7 @@ std::auto_ptr<STObject> STObject::parseJson(const Json::Value& object, SField::r
case STI_VL:
if (!value.isString())
throw std::runtime_error("Incorrect type");
data.push_back(new STVariableLength(field, strUnHex(value.asString())));
break;