Co-authored-by: geekrelief <[email protected]> (cherry picked from commit 0fe851da23050c28e85ba4165b24d603c8c3b382)
@@ -1534,6 +1534,8 @@ void NativeScriptLanguage::unregister_script(NativeScript *script) {
C->get().destroy_func.free_func(C->get().destroy_func.method_data);
}
+
+ library_classes.erase(script->lib_path);
Map<String, Ref<GDNative> >::Element *G = library_gdnatives.find(script->lib_path);