diff options
author | smix8 <52464204+smix8@users.noreply.github.com> | 2023-04-01 12:52:15 +0200 |
---|---|---|
committer | RĂ©mi Verschelde <rverschelde@gmail.com> | 2023-04-02 17:37:12 +0200 |
commit | e243dfa9f6fd68740d6ae7bba02ae0114e791543 (patch) | |
tree | aa875654e1741b9f103f6e9ce6cb6fba45e69592 | |
parent | 50f26811b0409a0b44b1d7df4532c38cafd0a14a (diff) |
Fix NavigationAgent enable avoidance crash
Fixes NavigationAgent enable avoidance crash.
(cherry picked from commit 184427196f77893fc43ceece69fe51f770aadb54)
-rw-r--r-- | modules/navigation/nav_map.cpp | 1 |
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; } } |