You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Fix NavigationAgent enable avoidance crash
Fixes NavigationAgent enable avoidance crash.
This commit is contained in:
@@ -593,6 +593,7 @@ void NavMap::set_agent_as_controlled(NavAgent *agent) {
|
|||||||
if (!exist) {
|
if (!exist) {
|
||||||
ERR_FAIL_COND(!has_agent(agent));
|
ERR_FAIL_COND(!has_agent(agent));
|
||||||
controlled_agents.push_back(agent);
|
controlled_agents.push_back(agent);
|
||||||
|
agents_dirty = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user