diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-11-29 08:34:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-11-29 08:34:16 +0100 |
commit | c9989c5390972939445cd871844f66788cbd8c20 (patch) | |
tree | 7147b4dc296701c743c1e026bbab547b2abf2595 | |
parent | 7735af7e768e16efb4b3b6de1c72c3dfb50c9412 (diff) | |
parent | 85d8c427639554e67597daca577aa0509097263e (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.cpp | 3 |
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); |