You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
changed == for >= since some statements may not store a line (if line is empty)
this is added to #5204
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user