mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-24 10:56:38 +01:00
Core/ObjectMgr: Replace ABORT() with defaulting to faction 35 when faction template does not exist in DB (#20655)
This commit is contained in:
@@ -870,8 +870,8 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
|
||||
FactionTemplateEntry const* factionTemplate = sFactionTemplateStore.LookupEntry(cInfo->faction);
|
||||
if (!factionTemplate)
|
||||
{
|
||||
TC_LOG_FATAL("sql.sql", "Creature (Entry: %u) has non-existing faction template (%u). This can lead to crashes, aborting.", cInfo->Entry, cInfo->faction);
|
||||
ABORT();
|
||||
TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has non-existing faction template (%u). This can lead to crashes, set to faction 35.", cInfo->Entry, cInfo->faction);
|
||||
factionTemplate = sFactionTemplateStore.AssertEntry(35);
|
||||
}
|
||||
|
||||
// used later for scale
|
||||
|
||||
Reference in New Issue
Block a user