GDScript: Fix interrupted coroutines not clearing

This commit is contained in:
Danil Alexeev 2026-02-24 12:04:29 +03:00
parent 8120fb1242
commit ba8b2a1ff0
No known key found for this signature in database
GPG key ID: 5A52F75A8679EC57
3 changed files with 42 additions and 0 deletions

View file

@ -277,5 +277,6 @@ GDScriptFunctionState::~GDScriptFunctionState() {
MutexLock lock(GDScriptLanguage::singleton->mutex);
scripts_list.remove_from_list();
instances_list.remove_from_list();
_clear_stack();
}
}