summaryrefslogtreecommitdiff
path: root/src/text.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/text.cpp')
-rw-r--r--src/text.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/text.cpp b/src/text.cpp
index 07041afd9..687700193 100644
--- a/src/text.cpp
+++ b/src/text.cpp
@@ -45,9 +45,11 @@ Text::Text(const std::string &text, const int x, const int y,
const gcn::Color* color, const bool isSpeech,
gcn::Font *const font) :
mFont(font ? font : gui->getFont()),
+ mX(x),
mY(y),
mWidth(mFont->getWidth(text)),
mHeight(mFont->getHeight()),
+ mXOffset(0),
mText(text),
mColor(color),
mOutlineColor(Theme::getThemeColor(Theme::OUTLINE)),