Core/Globals: abort server startup if there are wrong factions in DB

Closes #18127
This commit is contained in:
ariel-
2016-10-25 23:34:59 -03:00
committed by Aokromes
parent f88d3935fc
commit 00b7cabd80

View File

@@ -846,7 +846,10 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
FactionTemplateEntry const* factionTemplate = sFactionTemplateStore.LookupEntry(cInfo->faction);
if (!factionTemplate)
TC_LOG_ERROR("sql.sql", "Creature (Entry: %u) has non-existing faction template (%u).", cInfo->Entry, cInfo->faction);
{
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();
}
// used later for scale
CreatureDisplayInfoEntry const* displayScaleEntry = NULL;