mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-03 01:19:38 +01:00
Backported from godot4: Fix crash in 'NavigationAgent3D', fixes #78910
- Scony
fcbb521392
This commit is contained in:
parent
62c5bfbc36
commit
d5499c69ba
@ -205,7 +205,7 @@ void NavigationAgent::_notification(int p_what) {
|
||||
set_agent_parent(get_parent());
|
||||
set_physics_process_internal(true);
|
||||
|
||||
if (avoidance_enabled) {
|
||||
if (agent_parent && avoidance_enabled) {
|
||||
NavigationServer::get_singleton()->agent_set_position(agent, agent_parent->get_global_transform().origin);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user