Core/DataStores: Fix loading hotfixes deleting records for db2s not loaded by worldserver

Port From (https://github.com/TrinityCore/TrinityCore/commit/2493d88a7224d829bd3b893f637cc255b2a751dc)
This commit is contained in:
hondacrx
2020-06-18 15:20:33 -04:00
parent 2d5a910f67
commit d686aef6d3
+2 -2
View File
@@ -652,9 +652,9 @@ namespace Game.DataStorage
uint tableHash = result.Read<uint>(1);
int recordId = result.Read<int>(2);
bool deleted = result.Read<bool>(3);
if (!_storage.ContainsKey(tableHash) && !_hotfixBlob.ContainsKey(Tuple.Create(tableHash, recordId)))
if (!deleted && !_storage.ContainsKey(tableHash) && !_hotfixBlob.ContainsKey(Tuple.Create(tableHash, recordId)))
{
Log.outError(LogFilter.Sql, "Table `hotfix_data` references unknown DB2 store by hash 0x{0:X} and has no reference to `hotfix_blob` in hotfix id {1}", tableHash, id);
Log.outError(LogFilter.Sql, $"Table `hotfix_data` references unknown DB2 store by hash 0x{tableHash:X} and has no reference to `hotfix_blob` in hotfix id {id} with RecordID: {recordId}");
continue;
}