aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobinsch <robinsch@users.noreply.github.com>2020-10-02 03:43:06 -0400
committerGitHub <noreply@github.com>2020-10-02 09:43:06 +0200
commit53cb57b864d6b67bd2807cdb1eff93487502fb73 (patch)
tree7ea2aed7def12c403e1596a17fd68a2e3f77b0d7 /src
parente811b9cdc2582cb1504e85b43d80696031fe2634 (diff)
Core/Aura: Fixed thread-unsafe return from Aura::GetCaster() (#25524)
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuras.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuras.cpp b/src/server/game/Spells/Auras/SpellAuras.cpp
index 693508b3373..0fce2319398 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -551,8 +551,6 @@ Unit* Aura::GetCaster() const
{
if (GetOwner()->GetGUID() == GetCasterGUID())
return GetUnitOwner();
- if (AuraApplication const* aurApp = GetApplicationOfTarget(GetCasterGUID()))
- return aurApp->GetTarget();
return ObjectAccessor::GetUnit(*GetOwner(), GetCasterGUID());
}