This commit is contained in:
David Markowitz
2024-02-25 22:00:14 -08:00
parent 15fc39f3bb
commit 124f6dad2a
2 changed files with 3 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ float MovementAIComponent::GetCurrentPathWaypointSpeed() const {
if (!m_Path || m_CurrentPathWaypointIndex >= m_CurrentPath.size() || m_CurrentPathWaypointIndex < 0) {
return 1.0f;
}
return m_Path->pathWaypoints.at(m_CurrentPathWaypointIndex).speed;
return m_Path->pathWaypoints.at(m_CurrentPathWaypointIndex).movingPlatform.speed;
}
void MovementAIComponent::SetupPath(const std::string& pathname) {