Explorar o código

Add missing GetPtr() for Dictionary<> and Array<>

Add missing GetPtr() method for generic versions of Dictionary
and Array to fix #20705.
Xavier Cho %!s(int64=7) %!d(string=hai) anos
pai
achega
5d2c239772

+ 5 - 0
modules/mono/glue/cs_files/Array.cs

@@ -331,5 +331,10 @@ namespace Godot
         {
             return GetEnumerator();
         }
+
+        internal IntPtr GetPtr()
+        {
+            return objectArray.GetPtr();
+        }
     }
 }

+ 5 - 0
modules/mono/glue/cs_files/Dictionary.cs

@@ -397,5 +397,10 @@ namespace Godot
         {
             return GetEnumerator();
         }
+
+        internal IntPtr GetPtr()
+        {
+            return objectDict.GetPtr();
+        }
     }
 }