Clear base script in GDScript::clear

This commit is contained in:
NoctemCat
2026-03-30 03:43:41 +09:00
parent 6d6e822c68
commit 0388291526
+5
View File
@@ -1482,6 +1482,11 @@ void GDScript::clear() {
memdelete(E);
}
functions_to_clear.clear();
#ifdef TOOLS_ENABLED
base_cache = Ref<GDScript>();
#endif
base = Ref<GDScript>();
}
void GDScript::cancel_pending_functions(bool warn) {