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.
This commit is contained in:
commit
d33308921d
@ -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;
|
GDScriptLanguage::get_singleton()->script_frame_time += time_taken - function_call_time;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
if (ScriptDebugger::get_singleton())
|
if (ScriptDebugger::get_singleton())
|
||||||
GDScriptLanguage::get_singleton()->exit_function();
|
GDScriptLanguage::get_singleton()->exit_function();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (_stack_size) {
|
if (_stack_size) {
|
||||||
//free stack
|
//free stack
|
||||||
|
Loading…
Reference in New Issue
Block a user