Merge pull request #75560 from smix8/fix_navagent_avoidance_crash_4.x
Fix NavigationAgent enable avoidance crash
This commit is contained in:
commit
7e30fa30ba
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue