small typo in TextServer, changes bitwise to logical which can be faster in some cases via "short circuiting"
This commit is contained in:
parent
f2a6168414
commit
2b93f44739
1 changed files with 1 additions and 1 deletions
|
@ -1627,7 +1627,7 @@ Array TextServer::parse_structured_text(StructuredTextParser p_parser_type, cons
|
|||
ret.push_back(Vector2i(prev, i));
|
||||
ret.push_back(Vector2i(i, i + 1));
|
||||
prev = i + 1;
|
||||
} else if (!local & (p_text[i] == '.')) { // Add each dot separated "domain" part as context.
|
||||
} else if (!local && (p_text[i] == '.')) { // Add each dot separated "domain" part as context.
|
||||
if (prev != i) {
|
||||
ret.push_back(Vector2i(prev, i));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue