aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/Auras/SpellAuraEffects.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/game/Spells/Auras/SpellAuraEffects.cpp b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
index 84ccda7b15e..93276151f8f 100644
--- a/src/server/game/Spells/Auras/SpellAuraEffects.cpp
+++ b/src/server/game/Spells/Auras/SpellAuraEffects.cpp
@@ -6105,14 +6105,14 @@ void AuraEffect::HandleLinkedSummon(AuraApplication const* aurApp, uint8 mode, b
target->GetCreatureListWithEntryInGrid(nearbyEntries, summonEntry);
for (auto creature : nearbyEntries)
{
- if (creature->GetOwner() == target)
+ if (creature->GetOwnerGUID() == target->GetGUID())
{
creature->DespawnOrUnsummon();
break;
}
else if (TempSummon* tempSummon = creature->ToTempSummon())
{
- if (tempSummon->GetSummoner() == target)
+ if (tempSummon->GetSummonerGUID() == target->GetGUID())
{
tempSummon->DespawnOrUnsummon();
break;