Merge pull request #38861 from RandomShaper/fix_gdsfs_eager_stack_clear

Fix too eager GDScriptFunctionState stack cleanup
This commit is contained in:
Rémi Verschelde 2020-05-19 20:30:42 +02:00 committed by GitHub
commit 0942ddfa2b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1818,8 +1818,6 @@ Variant GDScriptFunctionState::resume(const Variant &p_arg) {
state.result = Variant(); state.result = Variant();
if (completed) { if (completed) {
_clear_stack();
if (first_state.is_valid()) { if (first_state.is_valid()) {
first_state->emit_signal("completed", ret); first_state->emit_signal("completed", ret);
} else { } else {