aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/server/game/Spells/SpellMgr.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 01567385bd3..0e4cba36654 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -2949,8 +2949,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));
}