aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellScript.cpp
diff options
context:
space:
mode:
authorGiacomo Pozzoni <giacomopoz@gmail.com>2020-08-29 14:33:49 +0200
committerShauren <shauren.trinity@gmail.com>2022-02-04 13:00:08 +0100
commitc66bcc4c0ef0be3caac8c2e1b2e361de678fb6e4 (patch)
tree1660e2bcbb38c6839b1d9c1ddbdf919cb4430714 /src/server/game/Spells/SpellScript.cpp
parent6830d883adcec99e288d594fa1bd7cf9577c5b7d (diff)
Core/Spell: Fix name clashing between local variables and class member fields (#25352)
(cherry picked from commit 8a48ece5732a47fc36fadc63d0620072ef47f8fe)
Diffstat (limited to 'src/server/game/Spells/SpellScript.cpp')
-rw-r--r--src/server/game/Spells/SpellScript.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellScript.cpp b/src/server/game/Spells/SpellScript.cpp
index e82d1111465..0029986471a 100644
--- a/src/server/game/Spells/SpellScript.cpp
+++ b/src/server/game/Spells/SpellScript.cpp
@@ -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