summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorAndrea Catania <info@andreacatania.com>2020-03-19 18:05:31 +0100
committerAndrea Catania <info@andreacatania.com>2020-03-19 18:05:31 +0100
commitc7cf624836c50807560b6efa46261e417f9c3295 (patch)
tree0433cdc874672b28cd6eaaa16a52335e101c8c54 /scene/2d
parent750d7ea359a25aa49a086f7b906951201b1c819e (diff)
Fixes navigation path reset
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/navigation_agent_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/navigation_agent_2d.cpp b/scene/2d/navigation_agent_2d.cpp
index f5fe113f29..e345a076ae 100644
--- a/scene/2d/navigation_agent_2d.cpp
+++ b/scene/2d/navigation_agent_2d.cpp
@@ -215,6 +215,7 @@ void NavigationAgent2D::set_target_location(Vector2 p_location) {
navigation_path.clear();
target_reached = false;
navigation_finished = false;
+ update_frame_id = 0;
}
Vector2 NavigationAgent2D::get_target_location() const {