refactor(Core/Defines): Rename custom named creature family enum. (#24570)

This commit is contained in:
Benjamin Jackson
2026-02-15 06:06:33 -05:00
committed by GitHub
parent 088ffee46a
commit bd0f5ee722
2 changed files with 3 additions and 3 deletions

View File

@@ -1145,8 +1145,8 @@ void ObjectMgr::CheckCreatureTemplate(CreatureTemplate const* cInfo)
const_cast<CreatureTemplate*>(cInfo)->type = CREATURE_TYPE_HUMANOID;
}
// must exist or used hidden but used in data horse case
if (cInfo->family && !sCreatureFamilyStore.LookupEntry(cInfo->family) && cInfo->family != CREATURE_FAMILY_HORSE_CUSTOM)
// Must exist in DBC or use hidden miscellaneous family
if (cInfo->family && !sCreatureFamilyStore.LookupEntry(cInfo->family) && cInfo->family != CREATURE_FAMILY_NOT_SPECIFIED)
{
LOG_ERROR("sql.sql", "Creature (Entry: {}) has invalid creature family ({}) in `family`.", cInfo->Entry, cInfo->family);
const_cast<CreatureTemplate*>(cInfo)->family = 0;