aboutsummaryrefslogtreecommitdiff
path: root/src/Text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Text.cpp')
-rw-r--r--src/Text.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/Text.cpp b/src/Text.cpp
index 7503d61..9688ad1 100644
--- a/src/Text.cpp
+++ b/src/Text.cpp
@@ -487,10 +487,7 @@ namespace dchat
vertices[vertices.getVertexCount() - 2] = { sf::Vector2f(glyphPos.x, glyphPos.y - vspace), sf::Color::Transparent, sf::Vector2f() };
vertices[vertices.getVertexCount() - 1] = { sf::Vector2f(glyphPos.x, glyphPos.y - vspace), sf::Color::Transparent, sf::Vector2f() };
- if(textElement.type != TextElement::Type::TEXT)
- {
- prevCodePoint = 0;
- }
+ prevCodePoint = 0;
if(textElement.type == TextElement::Type::URL)
{