Fix too eager GDScriptFunctionState stack cleanup
(cherry picked from commit 1f0548efd4
)
This commit is contained in:
parent
e3be0520a1
commit
8f90d423b9
|
@ -1906,8 +1906,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 {
|
||||||
|
|
Loading…
Reference in New Issue