Fix NavigationAgent enable avoidance crash
Fixes NavigationAgent enable avoidance crash.
This commit is contained in:
parent
21d080ead4
commit
184427196f
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user