From 57c67fb0f7515564ae739e828d2f4320785d789c Mon Sep 17 00:00:00 2001 From: Juan Linietsky Date: Fri, 17 Jun 2016 21:57:46 -0300 Subject: [PATCH] reverted to ==, if a line is missing a statement, we'll have to make sure to add it --- modules/gdscript/gd_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp index a0415dee2d9..d5bf6463c6f 100644 --- a/modules/gdscript/gd_editor.cpp +++ b/modules/gdscript/gd_editor.cpp @@ -1039,7 +1039,7 @@ static bool _guess_identifier_from_assignment_in_function(GDCompletionContext& c for(int i=0;ibody->statements.size();i++) { - if (func->body->statements[i]->line >= p_src_line) { + if (func->body->statements[i]->line == p_src_line) { break; }