diff options
Diffstat (limited to 'src')
-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; } } |