From 8a0c0371d4984f2573c8a0e868708871589bef10 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 12 Oct 2019 21:27:56 +0200 Subject: C#: Fix regression from #32732 caused a crash on domain reload --- modules/mono/mono_gd/gd_mono.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index 25f8141dc9..504b8d41d0 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -988,6 +988,11 @@ Error GDMono::_unload_scripts_domain() { _domain_assemblies_cleanup(mono_domain_get_id(scripts_domain)); + core_api_assembly.assembly = NULL; +#ifdef TOOLS_ENABLED + editor_api_assembly.assembly = NULL; +#endif + project_assembly = NULL; #ifdef TOOLS_ENABLED tools_assembly = NULL; -- cgit v1.2.3