summaryrefslogtreecommitdiff
path: root/modules/navigation
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-04-01 12:52:15 +0200
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-04-02 17:37:12 +0200
commite243dfa9f6fd68740d6ae7bba02ae0114e791543 (patch)
treeaa875654e1741b9f103f6e9ce6cb6fba45e69592 /modules/navigation
parent50f26811b0409a0b44b1d7df4532c38cafd0a14a (diff)
Fix NavigationAgent enable avoidance crash
Fixes NavigationAgent enable avoidance crash. (cherry picked from commit 184427196f77893fc43ceece69fe51f770aadb54)
Diffstat (limited to 'modules/navigation')
-rw-r--r--modules/navigation/nav_map.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules/navigation/nav_map.cpp b/modules/navigation/nav_map.cpp
index 4dcdbd6446..a7066bc41c 100644
--- a/modules/navigation/nav_map.cpp
+++ b/modules/navigation/nav_map.cpp
@@ -593,6 +593,7 @@ void NavMap::set_agent_as_controlled(NavAgent *agent) {
if (!exist) {
ERR_FAIL_COND(!has_agent(agent));
controlled_agents.push_back(agent);
+ agents_dirty = true;
}
}