diff --git a/oi/exporters/ParsedData.cpp b/oi/exporters/ParsedData.cpp index b8e779b..a6a323e 100644 --- a/oi/exporters/ParsedData.cpp +++ b/oi/exporters/ParsedData.cpp @@ -51,7 +51,7 @@ ParsedData ParsedData::parse(std::vector::const_iterator& it, auto index = parseVarint(it); assert(index < ty.variants.size()); return ParsedData::Sum{ - .index = parseVarint(it), + .index = index, .value = {it, ty.variants[index]}, }; } else {