mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 14:11:15 +00:00
Fix extends issue, closes #4026
This commit is contained in:
parent
8e1c0f287d
commit
565bb3afcc
2 changed files with 7 additions and 1 deletions
|
|
@ -874,6 +874,10 @@ GDScript::~GDScript() {
|
|||
memdelete( E->get() );
|
||||
}
|
||||
|
||||
for (Map<StringName,Ref<GDScript> >::Element *E=subclasses.front();E;E=E->next()) {
|
||||
E->get()->_owner=NULL; //bye, you are no longer owned cause I died
|
||||
}
|
||||
|
||||
#ifdef DEBUG_ENABLED
|
||||
if (GDScriptLanguage::get_singleton()->lock) {
|
||||
GDScriptLanguage::get_singleton()->lock->lock();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue