Merge pull request #67216 from dotlogix/Bugfix/FixErrorWhenSerializingSignals
Fix crash when serializing empty delegates in C#
This commit is contained in:
commit
b9e924c806
1 changed files with 5 additions and 0 deletions
|
|
@ -76,6 +76,11 @@ namespace Godot
|
|||
|
||||
internal static bool TrySerializeDelegate(Delegate @delegate, Collections.Array serializedData)
|
||||
{
|
||||
if (@delegate is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if (@delegate is MulticastDelegate multicastDelegate)
|
||||
{
|
||||
bool someDelegatesSerialized = false;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue