Core/Position: Remove Position implicit object slicing

This commit is contained in:
Shauren
2025-05-19 15:34:32 +02:00
parent fe788a5eeb
commit a5ca817ff6
7 changed files with 15 additions and 17 deletions

View File

@@ -559,9 +559,7 @@ void WorldSession::HandleMissileTrajectoryCollision(WorldPackets::Spells::Missil
if (!spell || !spell->m_targets.HasDst())
return;
Position pos = *spell->m_targets.GetDstPos();
pos.Relocate(packet.CollisionPos);
spell->m_targets.ModDst(pos);
spell->m_targets.ModDst(packet.CollisionPos);
// we changed dest, recalculate flight time
spell->RecalculateDelayMomentForDst();