You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Fix errors destroying script with static variables
Fixes #78376 After #78138 'script_list' is now cleared in 'GDScriptLanguage::finish' Because of that, we can safely remove the removal from that list that happens on 'GDScript::~GDScript'.
This commit is contained in:
@@ -1542,7 +1542,7 @@ GDScript::~GDScript() {
|
||||
{
|
||||
MutexLock lock(GDScriptLanguage::get_singleton()->mutex);
|
||||
|
||||
GDScriptLanguage::get_singleton()->script_list.remove(&script_list);
|
||||
script_list.remove_from_list();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user