Mono/C#: Fix crash on exported games that don't use C#

This commit is contained in:
Ignacio Etcheverry 2019-11-29 01:35:46 +01:00
parent 7735af7e76
commit 85d8c42763

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