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

This commit is contained in:
Giacomo Pozzoni
2020-08-29 14:33:49 +02:00
committed by GitHub
parent 7e6f17a701
commit 8a48ece573
4 changed files with 60 additions and 23 deletions

View File

@@ -558,7 +558,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