Browse Source

Merge pull request #58201 from V-Sekai/debugger_locals

Rémi Verschelde 3 years ago
parent
commit
e133adeb8c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      modules/gdscript/gdscript_function.cpp

+ 1 - 1
modules/gdscript/gdscript_function.cpp

@@ -95,7 +95,7 @@ void GDScriptFunction::debug_get_stack_member_state(int p_line, List<Pair<String
 	int oc = 0;
 	int oc = 0;
 	Map<StringName, _GDFKC> sdmap;
 	Map<StringName, _GDFKC> sdmap;
 	for (const StackDebug &sd : stack_debug) {
 	for (const StackDebug &sd : stack_debug) {
-		if (sd.line > p_line) {
+		if (sd.line >= p_line) {
 			break;
 			break;
 		}
 		}