From 9fa4d3b1b0a5a015959ce0c95b03670a8ae91567 Mon Sep 17 00:00:00 2001 From: SaracenOne Date: Wed, 16 Feb 2022 18:12:38 +0000 Subject: [PATCH] Fix local variables not showing when breaking on final line (cherry picked from commit 657b9b659680194f6d3aa546a4b20246bb51fb39) --- modules/gdscript/gdscript_function.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gdscript_function.cpp b/modules/gdscript/gdscript_function.cpp index 2fc7775687f..dd4e4a1ca42 100644 --- a/modules/gdscript/gdscript_function.cpp +++ b/modules/gdscript/gdscript_function.cpp @@ -1651,7 +1651,7 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List sdmap; for (const List::Element *E = stack_debug.front(); E; E = E->next()) { const StackDebug &sd = E->get(); - if (sd.line > p_line) { + if (sd.line >= p_line) { break; }