Core/Spell: Fix name clashing between local variables and class member fields (#25352)

(cherry picked from commit 8a48ece573)
This commit is contained in:
Giacomo Pozzoni
2020-08-29 14:33:49 +02:00
committed by Shauren
parent 6830d883ad
commit c66bcc4c0e
4 changed files with 65 additions and 23 deletions

View File

@@ -633,7 +633,7 @@ Corpse* SpellScript::GetHitCorpse() const
TC_LOG_ERROR("scripts", "Script: `%s` Spell: `%u`: function SpellScript::GetHitCorpse was called, but function has no effect in current hook!", m_scriptName->c_str(), m_scriptSpellId);
return nullptr;
}
return m_spell->corpseTarget;
return m_spell->m_corpseTarget;
}
WorldLocation* SpellScript::GetHitDest() const