From e8103d368d023bb1f1abc03d8de1be10481af1c1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 19 Jun 2011 22:07:31 +0300 Subject: Fix action "copy eqipped to outfit". --- src/gui/outfitwindow.cpp | 4 ++-- 1 file 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; } } -- cgit v1.2.3-70-g09d2