Browse Source

Fix GDScript stack leak.

Pāvels Nadtočajevs 5 months ago
parent
commit
89c55f638d
1 changed files with 0 additions and 2 deletions
  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();
 		GDScriptLanguage::get_singleton()->exit_function();
 
 
-#ifdef DEBUG_ENABLED
 		_clear_stack();
 		_clear_stack();
-#endif
 	}
 	}
 
 
 	return ret;
 	return ret;