summaryrefslogtreecommitdiff
path: root/servers/text_server.cpp
diff options
context:
space:
mode:
authorPatrick <firefly2442@gmail.com>2022-08-12 23:14:40 -0600
committerfirefly2442 <firefly2442@gmail.com>2022-08-13 07:44:41 -0600
commit2b93f447392ce3e67675d29cf50cc83488a470c3 (patch)
treee75cc7735cd4d09a2bc446e3701934a9cad5b985 /servers/text_server.cpp
parentf2a61684143af02a8cbe7002645af817607f9bd6 (diff)
small typo in TextServer, changes bitwise to logical which can be faster in some cases via "short circuiting"
Diffstat (limited to 'servers/text_server.cpp')
-rw-r--r--servers/text_server.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/servers/text_server.cpp b/servers/text_server.cpp
index 2bf0837d88..ead6961f59 100644
--- a/servers/text_server.cpp
+++ b/servers/text_server.cpp
@@ -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));
}