瀏覽代碼

Fix GDScript stack leak.

Pāvels Nadtočajevs 5 月之前
父節點
當前提交
89c55f638d
共有 1 個文件被更改,包括 0 次插入2 次删除
  1. 0 2
      modules/gdscript/gdscript_function.cpp

+ 0 - 2
modules/gdscript/gdscript_function.cpp

@@ -239,9 +239,7 @@ Variant GDScriptFunctionState::resume(const Variant &p_arg) {
 
 		GDScriptLanguage::get_singleton()->exit_function();
 
-#ifdef DEBUG_ENABLED
 		_clear_stack();
-#endif
 	}
 
 	return ret;