Core/Pets: Fix stay command if pet is currently processing spline movement

This commit is contained in:
Machiavelli committed 2012-02-21 10:41:48 +01:00
1 parent fb39566f1f
commit 1aceab6b62
2 files changed
+6 -1

No files matched your search

+5 -1
View File
@@ -17400,7 +17400,11 @@ bool CharmInfo::IsCommandAttack()
void CharmInfo::SaveStayPosition()
{
m_unit->GetPosition(m_stayX, m_stayY, m_stayZ);
//! At this point a new spline destination is enabled because of Unit::StopMoving()
G3D::Vector3 const stayPos = m_unit->movespline->FinalDestination();
m_stayX = stayPos.x;
m_stayY = stayPos.y;
m_stayZ = stayPos.z;
}
void CharmInfo::GetStayPosition(float &x, float &y, float &z)