summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-11-29 08:34:16 +0100
committerGitHub <noreply@github.com>2019-11-29 08:34:16 +0100
commitc9989c5390972939445cd871844f66788cbd8c20 (patch)
tree7147b4dc296701c743c1e026bbab547b2abf2595
parent7735af7e768e16efb4b3b6de1c72c3dfb50c9412 (diff)
parent85d8c427639554e67597daca577aa0509097263e (diff)
Merge pull request #33983 from neikeq/issue-32980
Mono/C#: Fix crash on exported games that don't use C#
-rw-r--r--modules/mono/csharp_script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/mono/csharp_script.cpp b/modules/mono/csharp_script.cpp
index 34dcde40f4..4536614379 100644
--- a/modules/mono/csharp_script.cpp
+++ b/modules/mono/csharp_script.cpp
@@ -128,7 +128,8 @@ void CSharpLanguage::init() {
print_line("Run this binary with '--generate-mono-glue path/to/modules/mono/glue'");
#endif
- gdmono->initialize_load_assemblies();
+ if (gdmono->is_runtime_initialized())
+ gdmono->initialize_load_assemblies();
#ifdef TOOLS_ENABLED
EditorNode::add_init_callback(&_editor_init_callback);