Core/Creatures: Validate creature.modelid on startup
Port From (https://github.com/TrinityCore/TrinityCore/commit/ef70cf64814341543fdb8efa403319371d9f3104)
This commit is contained in:
@@ -3538,6 +3538,15 @@ namespace Game
|
||||
continue;
|
||||
}
|
||||
|
||||
if (data.display != null)
|
||||
{
|
||||
if (GetCreatureModelInfo(data.display.CreatureDisplayID) == null)
|
||||
{
|
||||
Log.outError(LogFilter.Sql, $"Table `creature` has creature (GUID: {guid} Entry: {data.Id}) with invalid `modelid` {data.display.CreatureDisplayID}, ignoring.");
|
||||
data.display = null;
|
||||
}
|
||||
}
|
||||
|
||||
// -1 random, 0 no equipment,
|
||||
if (data.equipmentId != 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user