Browse Source

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

Add missing GetPtr() method for generic versions of Dictionary
and Array to fix #20705.
Xavier Cho 7 years ago
parent
commit
5d2c239772
2 changed files with 10 additions and 0 deletions
  1. 5 0
      modules/mono/glue/cs_files/Array.cs
  2. 5 0
      modules/mono/glue/cs_files/Dictionary.cs

+ 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();
+        }
     }
 }