diff options
author | ariel- <ariel-@users.noreply.github.com> | 2018-04-03 03:57:02 -0300 |
---|---|---|
committer | ariel- <ariel-@users.noreply.github.com> | 2018-04-03 03:57:02 -0300 |
commit | 6dd23da9e16230ba79994185843f7e75affdc248 (patch) | |
tree | 40457d5b7ead8fb317915b31cf61ff2774e5a393 /src | |
parent | 5dec0e491ba56c940833791d2cb4a2607c2b003f (diff) |
Core/Spell: build fix
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Spells/SpellMgr.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
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)); |