diff options
author | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-07 22:00:30 +0200 |
---|---|---|
committer | Ignacio Etcheverry <ignalfonsore@gmail.com> | 2017-10-07 22:00:35 +0200 |
commit | eb920406ae0ddae54aafb866b23c218a12c18bb4 (patch) | |
tree | cdd50513a7623a6f0f5e79f74143df8631d332f8 /modules/mono/mono_gd/gd_mono.cpp | |
parent | 5ab3537179a552f8d95e680ec0e35621615248f4 (diff) |
Fix dot separated assembly names confused with file extensions
Diffstat (limited to 'modules/mono/mono_gd/gd_mono.cpp')
-rw-r--r-- | modules/mono/mono_gd/gd_mono.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/mono/mono_gd/gd_mono.cpp b/modules/mono/mono_gd/gd_mono.cpp index 98b57adc50..2c88832998 100644 --- a/modules/mono/mono_gd/gd_mono.cpp +++ b/modules/mono/mono_gd/gd_mono.cpp @@ -285,8 +285,7 @@ bool GDMono::_load_assembly(const String &p_name, GDMonoAssembly **r_assembly) { MonoAssembly *assembly = mono_assembly_load_full(aname, NULL, &status, false); mono_assembly_name_free(aname); - if (!assembly) - return false; + ERR_FAIL_NULL_V(assembly, false); uint32_t domain_id = mono_domain_get_id(mono_domain_get()); |