diff --git a/servers/text_server.cpp b/servers/text_server.cpp index 75712d0c5ad..7570143b43d 100644 --- a/servers/text_server.cpp +++ b/servers/text_server.cpp @@ -1628,7 +1628,7 @@ TypedArray TextServer::parse_structured_text(StructuredTextParser p_pa 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)); }