This commit is contained in:
David Markowitz 2023-06-15 23:58:39 -07:00
parent fdd98ab825
commit ea975965ca

View File

@ -183,7 +183,7 @@ void MovingPlatformComponent::StartPathing() {
const auto travelNext = subComponent->mWaitTime + travelTime; const auto travelNext = subComponent->mWaitTime + travelTime;
m_ParentEntity->AddCallbackTimer(travelTime, [subComponent, this] { m_ParentEntity->AddCallbackTimer(travelTime, [subComponent, this] {
m_ParentEntity>GetScript()->OnWaypointReached(m_ParentEntity, subComponent->mNextWaypointIndex); m_ParentEntity->GetScript()->OnWaypointReached(m_ParentEntity, subComponent->mNextWaypointIndex);
}); });
m_ParentEntity->AddCallbackTimer(travelNext, [this] { m_ParentEntity->AddCallbackTimer(travelNext, [this] {