Skip to content

Commit

Permalink
Core: Navigation: check path success.
Browse files Browse the repository at this point in the history
  • Loading branch information
Xian55 committed Feb 11, 2022
1 parent 2d0d48b commit 33e7c10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/Goals/Navigation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private void RefillRouteToNextWaypoint()
if (!active)
return;

if (path == null)
if (!success || path == null)
{
LogWarn($"Unable to find path {location} -> {wayPoints.Peek()}. Character may stuck!");
return;
Expand Down

0 comments on commit 33e7c10

Please sign in to comment.