mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/DataStores: Fixed loading CommonData when IdTable is present (#28853)
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user