Merge pull request #71093 from Banderi/debugger_locals_3.x

[3.x] Fix local variables not showing when breaking on final line
This commit is contained in:
Rémi Verschelde 2023-01-09 14:18:10 +01:00
commit 106bfce7f3
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

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