Core/DataStores: Fixed loading CommonData when IdTable is present (#28853)

This commit is contained in:
Ghaster
2023-03-11 15:38:46 +01:00
committed by GitHub
parent e0e70948e4
commit 5c9283244b

View File

@@ -809,7 +809,7 @@ T DB2FileLoaderRegularImpl::RecordGetVarInt(uint8 const* record, uint32 field, u
}
case DB2ColumnCompression::CommonData:
{
uint32 id = RecordGetId(record, (_data.get() - record) / _header->RecordSize);
uint32 id = RecordGetId(record, (record - _data.get()) / _header->RecordSize);
T value;
auto valueItr = _commonValues[field].find(id);
if (valueItr != _commonValues[field].end())