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

Closes #18127
This commit is contained in:
ariel- authored and Aokromes committed 2016-11-02 02:46:39 +01:00
1 parent f88d3935fc
commit 00b7cabd80
1 file changed
+4 -1
+4 -1
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;