From 5d2c239772c7c6d4fb0eda104ffbe301899bdef6 Mon Sep 17 00:00:00 2001 From: Xavier Cho Date: Sat, 4 Aug 2018 14:19:50 +0900 Subject: [PATCH] Add missing GetPtr() for Dictionary<> and Array<> Add missing GetPtr() method for generic versions of Dictionary and Array to fix #20705. --- modules/mono/glue/cs_files/Array.cs | 5 +++++ modules/mono/glue/cs_files/Dictionary.cs | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/modules/mono/glue/cs_files/Array.cs b/modules/mono/glue/cs_files/Array.cs index 51f57daef45..1ec4d7d20ab 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 57a1960ad9a..30d17c2a599 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(); + } } }