mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-14 17:33:25 +00:00
[db2] Fix processing of garbage zero id fields.
This commit is contained in:
parent
0419a750d3
commit
bd121aff74
1 changed files with 5 additions and 0 deletions
|
|
@ -356,6 +356,11 @@ struct db2 {
|
|||
p += sizeof(db2::dat::field_value_base);
|
||||
auto f = std::ranges::find_if(fields, [&](auto &f) { return f.id == vb->field_id; });
|
||||
if (f == fields.end()) {
|
||||
if (vb->field_id == 0) {
|
||||
// de_DE quest has such one case
|
||||
p += vb->size;
|
||||
continue;
|
||||
}
|
||||
throw std::logic_error{"unknown field"};
|
||||
}
|
||||
auto fn = prepare_string(f->name);
|
||||
|
|
|
|||
Loading…
Reference in a new issue