diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-03-31 16:54:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-01 03:56:16 +0300 |
commit | 761682b6254a3d43e65ff45e07683c61afa6f1e4 (patch) | |
tree | 2ee462840f3aadb1e96bfa5c6784ec2cc0d2861a /src/gui/outfitwindow.cpp | |
parent | a39f63cdfa5ce15b22f294a8bb1db3a036ce462d (diff) | |
download | ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.gz ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.bz2 ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.tar.xz ManaVerse-761682b6254a3d43e65ff45e07683c61afa6f1e4.zip |
Last part of fixes.
Diffstat (limited to 'src/gui/outfitwindow.cpp')
-rw-r--r-- | src/gui/outfitwindow.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/outfitwindow.cpp b/src/gui/outfitwindow.cpp index 502e9d96b..265932cbb 100644 --- a/src/gui/outfitwindow.cpp +++ b/src/gui/outfitwindow.cpp @@ -593,10 +593,11 @@ void OutfitWindow::copyFromEquiped(int dst) for (unsigned i = 0; i < inventory->getSize(); i++) { - if (inventory->getItem(i) && inventory->getItem(i)->isEquipped()) + const Item *item = inventory->getItem(i); + if (item && item->isEquipped()) { - mItems[dst][outfitCell] = inventory->getItem(i)->getId(); - mItemColors[dst][outfitCell++] = inventory->getItem(i)->getColor(); + mItems[dst][outfitCell] = item->getId(); + mItemColors[dst][outfitCell++] = item->getColor(); if (outfitCell >= OUTFIT_ITEM_COUNT) break; } |