diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-27 18:19:34 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-03-27 18:19:34 +0300 |
commit | b08db29d61c2ec3ded6faf420dd2ca5d0ef49997 (patch) | |
tree | 8ac0abf27013c2173f9ad246bd6ac3c2cd11db8f /src/gui/equipmentwindow.cpp | |
parent | 99bdcc0bbd6ec410958d8edf320a5ba6f1dba55a (diff) | |
download | ManaVerse-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.gz ManaVerse-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.bz2 ManaVerse-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.tar.xz ManaVerse-b08db29d61c2ec3ded6faf420dd2ca5d0ef49997.zip |
Small cleanup in equipment window.
Diffstat (limited to 'src/gui/equipmentwindow.cpp')
-rw-r--r-- | src/gui/equipmentwindow.cpp | 5 |
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(); |