Merge pull request #33983 from neikeq/issue-32980

Mono/C#: Fix crash on exported games that don't use C#
This commit is contained in:
Rémi Verschelde 2019-11-29 08:34:16 +01:00 committed by GitHub
commit c9989c5390
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);