aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Events/midsummer.cpp
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2025-05-19 15:34:32 +0200
committerShauren <shauren.trinity@gmail.com>2025-05-19 15:34:32 +0200
commita5ca817ff6b2cdbb1879773f9b28b8dcc4a22bdf (patch)
treeb53378f197c687d081a199d9397692956913a478 /src/server/scripts/Events/midsummer.cpp
parentfe788a5eeb0bc8600ec877d9062614b9bfc43a64 (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.cpp4
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)
{