summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-06-19 22:07:31 +0300
committerAndrei Karas <akaras@inbox.ru>2011-06-19 22:07:31 +0300
commite8103d368d023bb1f1abc03d8de1be10481af1c1 (patch)
treeecda49f5767feb616a0f6227e2af02636f79cd1d /src/gui
parentf64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4 (diff)
downloadManaVerse-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.gz
ManaVerse-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.bz2
ManaVerse-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.xz
ManaVerse-e8103d368d023bb1f1abc03d8de1be10481af1c1.zip
Fix action "copy eqipped to outfit".
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/outfitwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp
index 96deee71d..8e7fbd1d1 100644
--- a/src/gui/outfitwindow.cpp
+++ b/src/gui/outfitwindow.cpp
@@ -949,9 +949,9 @@ void OutfitWindow::copyFromEquiped(int dst)
{
if (inventory->getItem(i) && inventory->getItem(i)->isEquipped())
{
- mItems[dst][outfitCell++] = inventory->getItem(i)->getId();
+ mItems[dst][outfitCell] = inventory->getItem(i)->getId();
mItemColors[dst][outfitCell++] = inventory->getItem(i)->getColor();
- if (outfitCell > 8)
+ if (outfitCell >= OUTFIT_ITEM_COUNT)
break;
}
}