aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrobinsch <robinsch@users.noreply.github.com>2020-10-02 03:43:06 -0400
committerShauren <shauren.trinity@gmail.com>2022-02-28 14:08:50 +0100
commit58ce0904aa08411570bb600c1604dc1fc0d01ac3 (patch)
tree0f20e07a17c6611e39989ba87a719dc28b0ffef5 /src
parentac6e242bffe433276d7aea66805a0755996ff904 (diff)
Core/Aura: Fixed thread-unsafe return from Aura::GetCaster() (#25524)
(cherry picked from commit 53cb57b864d6b67bd2807cdb1eff93487502fb73)
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 a9032aef337..dc5b90355e4 100644
--- a/src/server/game/Spells/Auras/SpellAuras.cpp
+++ b/src/server/game/Spells/Auras/SpellAuras.cpp
@@ -513,8 +513,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());
}