fix de-serialize of sub-sub-struct

This commit is contained in:
Michael Davidsaver
2020-01-31 09:17:09 -08:00
parent 82adcb938d
commit cacc9d088d
2 changed files with 24 additions and 2 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ void from_wire(Buffer& buf, std::vector<FieldDesc>& descs, TypeStore& cache, uns
if(code.code==TypeCode::Struct && code==cfld.code) {
// copy decendent indicies for sub-struct
for(auto& pair : cfld.mlookup) {
fld.mlookup[name+pair.first] = cindex + pair.second;
fld.mlookup[name+pair.first] = cindex - cref + pair.second;
}
}
}