mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 01:15:35 +01:00
Core/ObjectMgr: filter out bogus check
This restores previous behaviour
This commit is contained in:
@@ -6947,7 +6947,7 @@ void ObjectMgr::LoadGameObjectTemplateAddons()
|
||||
gameObjectAddon.maxgold = fields[4].GetUInt32();
|
||||
|
||||
// checks
|
||||
if (!sFactionTemplateStore.LookupEntry(gameObjectAddon.faction))
|
||||
if (gameObjectAddon.Faction && !sFactionTemplateStore.LookupEntry(gameObjectAddon.faction))
|
||||
TC_LOG_ERROR("sql.sql", "GameObject (Entry: %u) has invalid faction (%u) defined in `gameobject_template_addon`.", entry, gameObjectAddon.faction);
|
||||
|
||||
if (gameObjectAddon.maxgold > 0)
|
||||
|
||||
Reference in New Issue
Block a user