diff options
-rw-r--r-- | src/gui/outfitwindow.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index c7a22fd6..89bf47da 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -162,6 +162,9 @@ void OutfitWindow::action(const gcn::ActionEvent &event) void OutfitWindow::wearOutfit(int outfit) { + if (mItemsUnequip[outfit]) + unequipNotInOutfit(outfit); + Item *item; for (int i = 0; i < OUTFIT_ITEM_COUNT; i++) { @@ -172,11 +175,6 @@ void OutfitWindow::wearOutfit(int outfit) Net::getInventoryHandler()->equipItem(item); } } - - if (mItemsUnequip[outfit]) - { - unequipNotInOutfit(outfit); - } } void OutfitWindow::copyOutfit(int outfit) |