From d18ddf95346d123fd048a99e487e36ee2a12e45b Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 27 May 2013 18:30:52 +0300 Subject: improve textpopup. --- src/gui/textpopup.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/gui/textpopup.h') 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 -- cgit v1.2.3-70-g09d2