summaryrefslogtreecommitdiff
path: root/modules/gdscript/gd_editor.cpp
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2016-06-17 21:57:46 -0300
committerJuan Linietsky <reduzio@gmail.com>2016-06-17 21:57:46 -0300
commit57c67fb0f7515564ae739e828d2f4320785d789c (patch)
tree4542796a0f96979bb6bc34dd12b995bacff86b8e /modules/gdscript/gd_editor.cpp
parentdcd50f8838f0e0714e13c0d105030e75c9481c5a (diff)
reverted to ==, if a line is missing a statement, we'll have to make sure to add it
Diffstat (limited to 'modules/gdscript/gd_editor.cpp')
-rw-r--r--modules/gdscript/gd_editor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gdscript/gd_editor.cpp b/modules/gdscript/gd_editor.cpp
index a0415dee2d..d5bf6463c6 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;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;
}