Fix: cannot call size() on a moved-from Field
Solution is to swap the statements.
This was regressed in 7532f5769d.
This commit is contained in:
parent
134ed73498
commit
3649f41219
|
|
@ -27,11 +27,11 @@ Table::Table(InBuffer &frame)
|
|||
auto field = Field::decode(frame);
|
||||
if (!field) continue;
|
||||
|
||||
// add field
|
||||
_fields[name] = std::move(field);
|
||||
|
||||
// subtract size
|
||||
bytesToRead -= (uint32_t)field->size();
|
||||
|
||||
// add field
|
||||
_fields[name] = std::move(field);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue