From 6dd23da9e16230ba79994185843f7e75affdc248 Mon Sep 17 00:00:00 2001 From: ariel- Date: Tue, 3 Apr 2018 03:57:02 -0300 Subject: Core/Spell: build fix --- src/server/game/Spells/SpellMgr.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src') diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index 02f34a1feac..779f73c4092 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -2949,12 +2949,9 @@ void SpellMgr::LoadSpellInfoCustomAttributes() // add custom attribute to liquid auras for (LiquidTypeEntry const* liquid : sLiquidTypeStore) { - if (liquid->SpellId) - { - spellInfo = _GetSpellInfo(liquid->SpellId); - if (spellInfo) + if (uint32 spellId = liquid->SpellId) + if (SpellInfo* spellInfo = _GetSpellInfo(spellId)) spellInfo->AttributesCu |= SPELL_ATTR0_CU_LIQUID_AURA; - } } TC_LOG_INFO("server.loading", ">> Loaded SpellInfo custom attributes in %u ms", GetMSTimeDiffToNow(oldMSTime)); -- cgit v1.2.3