summaryrefslogtreecommitdiff
path: root/modules/mono
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-27 23:25:29 +0100
committerGitHub <noreply@github.com>2018-01-27 23:25:29 +0100
commit13596bb09a7fa6fc4dec7c406378055141c9e0e2 (patch)
tree8f9d9daf81c6f6fb61817281dd93ecc86e7c1c72 /modules/mono
parent4a042b1f7a4d6d9d41ab46c5e0f069d848b408f5 (diff)
parent72b0a9432bef77e94ae395dc12f59cbc3fe9b323 (diff)
Merge pull request #16123 from neikeq/lmao
Mono: Fix method_bind fields being generated as instance members
Diffstat (limited to 'modules/mono')
-rw-r--r--modules/mono/editor/bindings_generator.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mono/editor/bindings_generator.cpp b/modules/mono/editor/bindings_generator.cpp
index 37fe52c1d6..62c7a94755 100644
--- a/modules/mono/editor/bindings_generator.cpp
+++ b/modules/mono/editor/bindings_generator.cpp
@@ -1228,8 +1228,7 @@ Error BindingsGenerator::_generate_cs_method(const BindingsGenerator::TypeInterf
// Generate method
{
if (p_itype.is_object_type && !p_imethod.is_virtual && !p_imethod.requires_object_call) {
- p_output.push_back(MEMBER_BEGIN "private ");
- p_output.push_back(p_itype.is_singleton ? "static IntPtr " : "IntPtr ");
+ p_output.push_back(MEMBER_BEGIN "private static IntPtr ");
p_output.push_back(method_bind_field + " = " CS_CLASS_NATIVECALLS "." ICALL_GET_METHODBIND "(" BINDINGS_NATIVE_NAME_FIELD ", \"");
p_output.push_back(p_imethod.name);
p_output.push_back("\");\n");