diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-06-19 22:07:31 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-06-19 22:07:31 +0300 |
commit | e8103d368d023bb1f1abc03d8de1be10481af1c1 (patch) | |
tree | ecda49f5767feb616a0f6227e2af02636f79cd1d /src/gui | |
parent | f64447a7c8a3ba855923e3d9a1c2e9c62e6bdba4 (diff) | |
download | manaplus-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.gz manaplus-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.bz2 manaplus-e8103d368d023bb1f1abc03d8de1be10481af1c1.tar.xz manaplus-e8103d368d023bb1f1abc03d8de1be10481af1c1.zip |
Fix action "copy eqipped to outfit".
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/outfitwindow.cpp | 4 |
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; } } |