浏览代码

reverted to ==, if a line is missing a statement, we'll have to make sure to add it

Juan Linietsky 9 年之前
父节点
当前提交
57c67fb0f7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      modules/gdscript/gd_editor.cpp

+ 1 - 1
modules/gdscript/gd_editor.cpp

@@ -1039,7 +1039,7 @@ static bool _guess_identifier_from_assignment_in_function(GDCompletionContext& c
 
 	for(int i=0;i<func->body->statements.size();i++) {
 
-		if (func->body->statements[i]->line >= p_src_line) {
+		if (func->body->statements[i]->line == p_src_line) {
 			break;
 		}