Merge pull request #78521 from jpcerrone/fix_static_vars_refs

Fix errors destroying script with static variables
This commit is contained in:
Rémi Verschelde 2023-06-21 21:52:15 +02:00
commit f2ce0b6741
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -1542,7 +1542,7 @@ GDScript::~GDScript() {
{ {
MutexLock lock(GDScriptLanguage::get_singleton()->mutex); MutexLock lock(GDScriptLanguage::get_singleton()->mutex);
GDScriptLanguage::get_singleton()->script_list.remove(&script_list); script_list.remove_from_list();
} }
} }