Merge pull request #83357 from raulsntos/dotnet/ConvertCallableToNative(default)

C#: Fix converting default Callables to native
This commit is contained in:
Rémi Verschelde 2023-11-10 21:55:22 +01:00
commit 313bffc205
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 1 additions and 1 deletions

View File

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