mirror of
https://github.com/godotengine/godot.git
synced 2024-11-21 03:18:37 +08:00
Fix crash of navigation agents callback when object is invalid
Fix crash of navigation agents callback when object is invalid.
This commit is contained in:
parent
126e4d0a5b
commit
bc38ebe4f0
@ -65,8 +65,9 @@ void RvoAgent::dispatch_callback() {
|
||||
return;
|
||||
}
|
||||
Object *obj = ObjectDB::get_instance(callback.id);
|
||||
if (obj == nullptr) {
|
||||
if (!obj) {
|
||||
callback.id = ObjectID();
|
||||
return;
|
||||
}
|
||||
|
||||
Callable::CallError responseCallError;
|
||||
|
Loading…
Reference in New Issue
Block a user