From 53cb57b864d6b67bd2807cdb1eff93487502fb73 Mon Sep 17 00:00:00 2001 From: robinsch Date: Fri, 2 Oct 2020 03:43:06 -0400 Subject: [PATCH] Core/Aura: Fixed thread-unsafe return from Aura::GetCaster() (#25524) --- src/server/game/Spells/Auras/SpellAuras.cpp | 2 -- 1 file changed, 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()); }