Merge pull request #75560 from smix8/fix_navagent_avoidance_crash_4.x

Fix NavigationAgent enable avoidance crash
This commit is contained in:
Rémi Verschelde 2023-04-02 17:33:50 +02:00
commit 7e30fa30ba
No known key found for this signature in database
GPG key ID: C3336907360768E1

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