C#: Fix converting default Callables to native

This commit is contained in:
Raul Santos 2023-10-15 02:02:58 +02:00
parent a574c0296b
commit d525a45e5c
No known key found for this signature in database
GPG key ID: B532473AE3A803E4

View file

@ -259,7 +259,7 @@ namespace Godot.NativeInterop
}
return new godot_callable(method /* Takes ownership of disposable */,
p_managed_callable.Target.GetInstanceId());
p_managed_callable.Target?.GetInstanceId() ?? 0);
}
}