mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-23 02:25:38 +01:00
Really fix b5b03a7be0
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user