summaryrefslogtreecommitdiff
path: root/src/gui/textpopup.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/textpopup.h')
-rw-r--r--src/gui/textpopup.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/textpopup.h b/src/gui/textpopup.h
index f5f63473b..2ac658d64 100644
--- a/src/gui/textpopup.h
+++ b/src/gui/textpopup.h
@@ -31,6 +31,8 @@
class Label;
class TextBox;
+const int TEXTPOPUPCOUNT = 3;
+
/**
* A popup that displays information about an item.
*/
@@ -74,9 +76,7 @@ class TextPopup final : public Popup
void mouseMoved(gcn::MouseEvent &mouseEvent) override;
private:
- Label *mText1;
- Label *mText2;
- Label *mText3;
+ Label *mText[TEXTPOPUPCOUNT];
};
#endif // TEXTPOPUP_H