GDScript: Fix stack overflow when using multiple await

This commit is contained in:
George Marques 2022-05-27 09:13:25 -03:00
parent 8a21f7231f
commit 328aadc0ef
No known key found for this signature in database
GPG key ID: 046BD46A3201E43D
2 changed files with 15 additions and 10 deletions

View file

@ -270,6 +270,8 @@ Variant GDScriptFunctionState::resume(const Variant &p_arg) {
if (EngineDebugger::is_active()) {
GDScriptLanguage::get_singleton()->exit_function();
}
_clear_stack();
#endif
}