summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorXavier Cho <mysticfallband@gmail.com>2018-08-04 14:19:50 +0900
committerXavier Cho <mysticfallband@gmail.com>2018-08-04 14:34:55 +0900
commit5d2c239772c7c6d4fb0eda104ffbe301899bdef6 (patch)
tree583d5771f93dc2868be0a1fa06e866116b8bd76f /modules/mono
parent6c569c90b666c7fb773eca3948fc76ba7a160a27 (diff)
Add missing GetPtr() for Dictionary<> and Array<>
Add missing GetPtr() method for generic versions of Dictionary and Array to fix #20705.
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/glue/cs_files/Array.cs5
-rw-r--r--modules/mono/glue/cs_files/Dictionary.cs5
2 files changed, 10 insertions, 0 deletions
diff --git a/modules/mono/glue/cs_files/Array.cs b/modules/mono/glue/cs_files/Array.cs
index 51f57daef4..1ec4d7d20a 100644
--- a/modules/mono/glue/cs_files/Array.cs
+++ b/modules/mono/glue/cs_files/Array.cs
@@ -331,5 +331,10 @@ namespace Godot
{
return GetEnumerator();
}
+
+ internal IntPtr GetPtr()
+ {
+ return objectArray.GetPtr();
+ }
}
}
diff --git a/modules/mono/glue/cs_files/Dictionary.cs b/modules/mono/glue/cs_files/Dictionary.cs
index 57a1960ad9..30d17c2a59 100644
--- a/modules/mono/glue/cs_files/Dictionary.cs
+++ b/modules/mono/glue/cs_files/Dictionary.cs
@@ -397,5 +397,10 @@ namespace Godot
{
return GetEnumerator();
}
+
+ internal IntPtr GetPtr()
+ {
+ return objectDict.GetPtr();
+ }
}
}