aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-03-19 04:11:55 -0300
committerariel- <ariel-@users.noreply.github.com>2017-03-19 04:11:55 -0300
commit36bb4cabae01c591cf6151bae2f65a1f578ed9f3 (patch)
tree16fbe3fa895ddf131ee23c69a0e4f86bcf0fddf9
parent29af37d045c5e419925a5d161da2d1da60c552c9 (diff)
Core/Spell: add assert checks on SpellMgr::CheckSpellGroupStackRules
Ref #19319
-rw-r--r--src/server/game/Spells/SpellMgr.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp
index 05e47b0d66d..1e5cb50e029 100644
--- a/src/server/game/Spells/SpellMgr.cpp
+++ b/src/server/game/Spells/SpellMgr.cpp
@@ -432,10 +432,14 @@ bool SpellMgr::AddSameEffectStackRuleSpellGroups(SpellInfo const* spellInfo, int
SpellGroupStackRule SpellMgr::CheckSpellGroupStackRules(SpellInfo const* spellInfo1, SpellInfo const* spellInfo2) const
{
+ ASSERT(spellInfo1);
+ ASSERT(spellInfo2);
+
uint32 spellid_1 = spellInfo1->GetFirstRankSpell()->Id;
uint32 spellid_2 = spellInfo2->GetFirstRankSpell()->Id;
if (spellid_1 == spellid_2)
return SPELL_GROUP_STACK_RULE_DEFAULT;
+
// find SpellGroups which are common for both spells
SpellSpellGroupMapBounds spellGroup1 = GetSpellSpellGroupMapBounds(spellid_1);
std::set<SpellGroup> groups;