1
0
Fork 0

Fix NavigationAgent enable avoidance crash

Fixes NavigationAgent enable avoidance crash.

(cherry picked from commit 184427196f)
This commit is contained in:
smix8 2023-04-01 12:52:15 +02:00 committed by Rémi Verschelde
parent 50f26811b0
commit e243dfa9f6
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 0 deletions

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