[Spell::CleanupEffectExecuteData] Remove this confusing and potentially worthless function, use memset instead.
This commit is contained in:
@@ -583,7 +583,7 @@ m_caster((info->AttributesEx6 & SPELL_ATTR6_CAST_BY_CHARMER && caster->GetCharme
|
||||
&& !m_spellInfo->IsPassive() && !m_spellInfo->IsPositive();
|
||||
|
||||
CleanupTargetList();
|
||||
CleanupEffectExecuteData();
|
||||
memset(m_effectExecuteData, NULL, MAX_SPELL_EFFECTS * sizeof(ByteBuffer*));
|
||||
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
m_destTargets[i] = SpellDestination(*m_caster);
|
||||
@@ -6925,12 +6925,6 @@ void Spell::InitEffectExecuteData(uint8 effIndex)
|
||||
}
|
||||
}
|
||||
|
||||
void Spell::CleanupEffectExecuteData()
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
m_effectExecuteData[i] = NULL;
|
||||
}
|
||||
|
||||
void Spell::CheckEffectExecuteData()
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
|
||||
|
||||
@@ -616,7 +616,6 @@ class Spell
|
||||
|
||||
// spell execution log
|
||||
void InitEffectExecuteData(uint8 effIndex);
|
||||
void CleanupEffectExecuteData();
|
||||
void CheckEffectExecuteData();
|
||||
|
||||
// Scripting system
|
||||
|
||||
Reference in New Issue
Block a user