diff options
author | Shauren <shauren.trinity@gmail.com> | 2025-05-19 15:34:32 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2025-05-19 15:34:32 +0200 |
commit | a5ca817ff6b2cdbb1879773f9b28b8dcc4a22bdf (patch) | |
tree | b53378f197c687d081a199d9397692956913a478 /src/server/scripts/Events/midsummer.cpp | |
parent | fe788a5eeb0bc8600ec877d9062614b9bfc43a64 (diff) |
Core/Position: Remove Position implicit object slicing
Diffstat (limited to 'src/server/scripts/Events/midsummer.cpp')
-rw-r--r-- | src/server/scripts/Events/midsummer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Events/midsummer.cpp b/src/server/scripts/Events/midsummer.cpp index 29cac39c3dc..b407f34e614 100644 --- a/src/server/scripts/Events/midsummer.cpp +++ b/src/server/scripts/Events/midsummer.cpp @@ -224,7 +224,7 @@ class spell_midsummer_juggle_torch : public SpellScript if (!GetExplTargetDest()) return; - Position spellDest = *GetExplTargetDest(); + WorldLocation spellDest = *GetExplTargetDest(); float distance = GetCaster()->GetExactDist2d(spellDest.GetPositionX(), spellDest.GetPositionY()); uint32 torchSpellID = 0; @@ -234,7 +234,7 @@ class spell_midsummer_juggle_torch : public SpellScript { torchSpellID = SPELL_JUGGLE_TORCH_SELF; torchShadowSpellID = SPELL_JUGGLE_TORCH_SHADOW_SELF; - spellDest = GetCaster()->GetPosition(); + spellDest = GetCaster()->GetWorldLocation(); } else if (distance <= 10.0f) { |