Fix NavigationAgent enable avoidance crash

Fixes NavigationAgent enable avoidance crash.
This commit is contained in:
smix8 2023-04-01 12:52:15 +02:00
parent 21d080ead4
commit 184427196f

View File

@ -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;
}
}