This commit is contained in:
Shauren
2017-10-21 00:28:57 +02:00
parent b5b03a7be0
commit b8dc4df220

View File

@@ -871,7 +871,7 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
if (!factionTemplate)
{
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);
const_cast<CreatureTemplate*>(cInfo)->faction = sFactionTemplateStore.AssertEntry(35)->ID; // this might seem stupid but all shit will would break if faction 35 did not exist
}
// used later for scale