mirror of
https://github.com/godotengine/godot
synced 2024-09-05 10:08:45 +00:00
Merge pull request #78521 from jpcerrone/fix_static_vars_refs
Fix errors destroying script with static variables
This commit is contained in:
commit
f2ce0b6741
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue