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:
Rémi Verschelde 2018-05-02 10:48:45 +02:00 committed by GitHub
commit d33308921d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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