Merge pull request #67216 from dotlogix/Bugfix/FixErrorWhenSerializingSignals

Fix crash when serializing empty delegates in C#
This commit is contained in:
Rémi Verschelde 2022-10-13 09:05:22 +02:00
commit b9e924c806

View file

@ -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;