summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-03-27 18:19:34 +0300
committerAndrei Karas <akaras@inbox.ru>2012-03-27 18:19:34 +0300
commitb08db29d61c2ec3ded6faf420dd2ca5d0ef49997 (patch)
tree8ac0abf27013c2173f9ad246bd6ac3c2cd11db8f /src/gui
parent99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a (diff)
downloadmv-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.gz
mv-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.bz2
mv-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.xz
mv-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.zip
Small cleanup in equipment window.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/equipmentwindow.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/equipmentwindow.cpp b/src/gui/equipmentwindow.cpp
index 89063c3dc..7b77c8de0 100644
--- a/src/gui/equipmentwindow.cpp
+++ b/src/gui/equipmentwindow.cpp
@@ -58,6 +58,7 @@ static const int BOX_WIDTH = 36;
static const int BOX_HEIGHT = 36;
static const int BOX_X_PAD = (BOX_WIDTH - 32) / 2;
static const int BOX_Y_PAD = (BOX_HEIGHT - 32) / 2;
+static const int BOX_COUNT = 13;
EquipmentWindow::EquipmentWindow(Equipment *equipment, Being *being,
bool foring):
@@ -88,8 +89,8 @@ EquipmentWindow::EquipmentWindow(Equipment *equipment, Being *being,
setDefaultSize(180, 345, ImageRect::CENTER);
- mBoxes.reserve(13);
- for (int f = 0; f < 13; f ++)
+ mBoxes.reserve(BOX_COUNT);
+ for (int f = 0; f < BOX_COUNT; f ++)
mBoxes.push_back(nullptr);
fillBoxes();