summaryrefslogtreecommitdiff
path: root/src/gui/equipmentwindow.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/equipmentwindow.h')
-rw-r--r--src/gui/equipmentwindow.h18
1 files changed, 6 insertions, 12 deletions
diff --git a/src/gui/equipmentwindow.h b/src/gui/equipmentwindow.h
index 1bfc5f00..19630e0b 100644
--- a/src/gui/equipmentwindow.h
+++ b/src/gui/equipmentwindow.h
@@ -71,22 +71,16 @@ class EquipmentWindow : public Window, public gcn::ActionListener
*/
struct EquipBox
{
- EquipBox() :
- posX(0),
- posY(0),
- backgroundImage(nullptr)
- {}
-
- int posX;
- int posY;
- Image* backgroundImage;
+ int posX = 0;
+ int posY = 0;
+ Image *backgroundImage = nullptr;
};
- EquipBox *mEquipBox; /**< Equipment Boxes. */
+ EquipBox *mEquipBox = nullptr; /**< Equipment Boxes. */
- int mSelected; /**< Index of selected item. */
+ int mSelected = -1; /**< Index of selected item. */
Equipment *mEquipment;
- int mBoxesNumber; /**< Number of equipment boxes to display */
+ int mBoxesNumber = 0; /**< Number of equipment boxes to display */
private:
void mouseExited(gcn::MouseEvent &event) override;