summaryrefslogtreecommitdiff
path: root/src/gui/outfitwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r--src/gui/outfitwindow.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index c33c753bc..74e8dbe46 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -2,7 +2,7 @@
* The ManaPlus Client
* Copyright (C) 2007-2009 The Mana World Development Team
* Copyright (C) 2009-2010 The Mana Developers
- * Copyright (C) 2011 The ManaPlus Developers
+ * Copyright (C) 2011-2012 The ManaPlus Developers
*
* This file is part of The ManaPlus Client.
*
@@ -985,3 +985,12 @@ void OutfitWindow::setItemSelected(Item *item)
mItemColorSelected = 1;
}
}
+
+void OutfitWindow::clearCurrentOutfit()
+{
+ for (unsigned f = 0; f < OUTFIT_ITEM_COUNT; f++)
+ {
+ mItems[mCurrentOutfit][f] = -1;
+ mItemColors[mCurrentOutfit][f] = 1;
+ }
+}