Browse Source

Merge pull request #18553 from bzztbomb/fix/stack_underflow_when_debuggin_in_release

Fix a crash when trying to run Godot debugger on a release build.
Rémi Verschelde 7 years ago
parent
commit
d33308921d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_function.cpp

+ 1 - 1
modules/gdscript/gdscript_function.cpp

@@ -1311,9 +1311,9 @@ Variant GDScriptFunction::call(GDScriptInstance *p_instance, const Variant **p_a
 		GDScriptLanguage::get_singleton()->script_frame_time += time_taken - function_call_time;
 	}
 
-#endif
 	if (ScriptDebugger::get_singleton())
 		GDScriptLanguage::get_singleton()->exit_function();
+#endif
 
 	if (_stack_size) {
 		//free stack