1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-15 13:51:40 +00:00

Fix local variables not showing when breaking on final line

(cherry picked from commit 657b9b6596)
This commit is contained in:
SaracenOne
2022-02-16 18:12:38 +00:00
committed by Rémi Verschelde
parent c03c23751b
commit 3a8367ba5e

View File

@@ -1651,7 +1651,7 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List<Pair<String
Map<StringName, _GDFKC> sdmap; Map<StringName, _GDFKC> sdmap;
for (const List<StackDebug>::Element *E = stack_debug.front(); E; E = E->next()) { for (const List<StackDebug>::Element *E = stack_debug.front(); E; E = E->next()) {
const StackDebug &sd = E->get(); const StackDebug &sd = E->get();
if (sd.line > p_line) { if (sd.line >= p_line) {
break; break;
} }