Core/ObjectMgr: filter out bogus check

This restores previous behaviour
This commit is contained in:
ariel-
2016-08-28 23:24:04 -03:00
committed by GitHub
parent 33102220e5
commit 7028503e8f

View File

@@ -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)