From 8f90d423b99ae2b194c85d665341518d1fc3c3af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20J=2E=20Est=C3=A9banez?= Date: Tue, 19 May 2020 16:41:14 +0200 Subject: [PATCH] Fix too eager GDScriptFunctionState stack cleanup (cherry picked from commit 1f0548efd4c73178364ba99a54ae00f5483d41ac) --- modules/gdscript/gdscript_function.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index a3603479cf5..027350a665d 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/modules/gdscript/gdscript_function.cpp @@ -1906,8 +1906,6 @@ Variant GDScriptFunctionState::resume(const Variant &p_arg) { state.result = Variant(); if (completed) { - _clear_stack(); - if (first_state.is_valid()) { first_state->emit_signal("completed", ret); } else {