aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2022-12-31 19:29:52 +0100
committerShauren <shauren.trinity@gmail.com>2022-12-31 19:29:52 +0100
commitfa361a40c81c5b1623fe2ff8f9a206868a6604f0 (patch)
tree9db9438acbd9acd10b5c0581e6c478a5819ee876 /src
parent704142f15a51055c4fa064b1286b65d78b795e05 (diff)
Core/Spells: Fixed crashes with spells cast by gameobject that summon creatures
Closes #28640
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Spells/SpellEffects.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellEffects.cpp b/src/server/game/Spells/SpellEffects.cpp
index e10fa03c953..4b63f346a35 100644
--- a/src/server/game/Spells/SpellEffects.cpp
+++ b/src/server/game/Spells/SpellEffects.cpp
@@ -1925,7 +1925,7 @@ void Spell::EffectSummonType()
// randomize position for multiple summons
pos = caster->GetRandomPoint(*destTarget, radius);
- summon = unitCaster->GetMap()->SummonCreature(entry, pos, properties, duration, unitCaster, m_spellInfo->Id, 0, privateObjectOwner);
+ summon = caster->GetMap()->SummonCreature(entry, pos, properties, duration, unitCaster, m_spellInfo->Id, 0, privateObjectOwner);
if (!summon)
continue;