diff options
author | Andrei Karas <akaras@inbox.ru> | 2013-03-24 18:28:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2013-03-24 21:06:51 +0300 |
commit | a306ecf96736779b08d1de7ec994d3d741d5dc61 (patch) | |
tree | 5a64809354d2c5f672a34fc9578975ab76920b5b /src/gui/outfitwindow.cpp | |
parent | 6053e0797465a15da30b8d645c8ac7c95b596c69 (diff) | |
download | manaplus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.gz manaplus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.bz2 manaplus-a306ecf96736779b08d1de7ec994d3d741d5dc61.tar.xz manaplus-a306ecf96736779b08d1de7ec994d3d741d5dc61.zip |
fix code style.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index f548116f6..dbe084c17 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -260,13 +260,12 @@ void OutfitWindow::wearOutfit(const int outfit, const bool unwearEmpty, { bool isEmpty = true; - const Item *item; if (outfit < 0 || outfit > static_cast<int>(OUTFITS_COUNT)) return; for (unsigned i = 0; i < OUTFIT_ITEM_COUNT; i++) { - item = PlayerInfo::getInventory()->findItem( + const Item *const item = PlayerInfo::getInventory()->findItem( mItems[outfit][i], mItemColors[outfit][i]); if (item && !item->isEquipped() && item->getQuantity()) { |