From e243dfa9f6fd68740d6ae7bba02ae0114e791543 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Sat, 1 Apr 2023 12:52:15 +0200 Subject: Fix NavigationAgent enable avoidance crash Fixes NavigationAgent enable avoidance crash. (cherry picked from commit 184427196f77893fc43ceece69fe51f770aadb54) --- modules/navigation/nav_map.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'modules') 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; } } -- cgit v1.2.3