Fix build

This commit is contained in:
Gooyeth
2018-04-01 22:02:37 -06:00
committed by Aokromes
parent 395ad03cd4
commit 42dc0a739c

View File

@@ -2812,8 +2812,11 @@ void SpellMgr::LoadSpellInfoCustomAttributes()
// add attribute custom to liquid auras
for (LiquidTypeEntry const* liquid : sLiquidTypeStore)
if (liquid->SpellId)
if (spellInfo = _GetSpellInfo(liquid->SpellId))
{
spellInfo = _GetSpellInfo(liquid->SpellId);
if (spellInfo)
spellInfo->AttributesCu |= SPELL_ATTR0_CU_LIQUID_AURA;
}
TC_LOG_INFO("server.loading", ">> Loaded SpellInfo custom attributes in %u ms", GetMSTimeDiffToNow(oldMSTime));
}