[Spell::CleanupEffectExecuteData] Remove this confusing and potentially worthless function, use memset instead.

This commit is contained in:
e
2012-09-04 22:38:59 -04:00
parent 50cea6638b
commit f9a1fabc7b
2 changed files with 1 additions and 8 deletions
+1 -7
View File
@@ -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)
-1
View File
@@ -616,7 +616,6 @@ class Spell
// spell execution log
void InitEffectExecuteData(uint8 effIndex);
void CleanupEffectExecuteData();
void CheckEffectExecuteData();
// Scripting system