Fix MoveTo() using actor's origin instead of waypoint origin

MoveTo() was incorrectly setting the script goal to the actor's origin rather than the waypoint's origin, causing the actor to stand still instead of moving to the specified location.
This commit is contained in:
smallmodel committed 2025-06-02 01:55:00 +02:00
1 parent 13762a05b8
commit 45205c1906
1 file changed
+1 -1
+1 -1
View File
@@ -4420,7 +4420,7 @@ void Actor::MoveTo(Event *ev)
}
if (m_patrolCurrentNode) {
m_vScriptGoal = origin;
m_vScriptGoal = m_patrolCurrentNode->origin;
m_bScriptGoalValid = true;
}