diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-05-02 10:48:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-05-02 10:48:45 +0200 |
commit | d33308921ddfc2b07d96c97e8fd1a62a2d9a1ba9 (patch) | |
tree | 5711f2af149f4da7f8c5222185ad71ee05ac87df /modules | |
parent | 18c28c159d12c9d3227c2199998b271f7c5e5998 (diff) | |
parent | 9149b119733aa9444a59c6940e7d8b875dfc31e8 (diff) |
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.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/gdscript/gdscript_function.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index d32ce25d3c..1c5b8187ca 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/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 |