Skip to content

Commit fd4fe46

Browse files
committed
Fix to idle actors
1 parent 0c5aaf5 commit fd4fe46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Entities/Actor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1356,7 +1356,7 @@ void Actor::Update()
13561356
if (!m_MovePath.empty())
13571357
m_MoveTarget = m_MovePath.front();
13581358
// No more path, so check if any more waypoints to make a new path to? This doesn't apply if we're following something
1359-
else if (m_MovePath.empty() && !m_Waypoints.empty() && !m_pMOMoveTarget)
1359+
else if (m_UpdateMovePath || (m_MovePath.empty() && !m_Waypoints.empty() && !m_pMOMoveTarget))
13601360
UpdateMovePath();
13611361
// Nope, so just conclude that we must have reached the ultimate AI target set and exit the goto mode
13621362
else if (!m_pMOMoveTarget)

0 commit comments

Comments
 (0)