Skip to content

Commit

Permalink
Merge pull request #71093 from Banderi/debugger_locals_3.x
Browse files Browse the repository at this point in the history
[3.x] Fix local variables not showing when breaking on final line
  • Loading branch information
akien-mga committed Jan 9, 2023
2 parents 085490f + 9fa4d3b commit 106bfce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdscript/gdscript_function.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1651,7 +1651,7 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List<Pair<String
Map<StringName, _GDFKC> sdmap;
for (const List<StackDebug>::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;
}

Expand Down

0 comments on commit 106bfce

Please sign in to comment.