From 795a6e1925c501103a6fb6da920414b1b2aa9f33 Mon Sep 17 00:00:00 2001 From: Shauren Date: Mon, 19 May 2025 15:34:32 +0200 Subject: Core/Position: Remove Position implicit object slicing (cherry picked from commit a5ca817ff6b2cdbb1879773f9b28b8dcc4a22bdf) --- src/server/scripts/Events/midsummer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/server/scripts/Events/midsummer.cpp') 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) { -- cgit v1.2.3