summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-04-13 19:33:05 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-04-13 19:33:05 +0000
commit3d69592e8e786901c0e3a3f3ad2aacad3dab1885 (patch)
tree06d022a26af63d4a5aafc8f32b9285931707b74a /src/gui/itemcontainer.cpp
parent4b7cbd2a0ade9f40714194d59dc5bc7836778344 (diff)
downloadmana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.gz
mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.bz2
mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.xz
mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.zip
getNumberOfSlotsUsed() tweaked a little. Still problems.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index 1de08b57..f727d820 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -222,7 +222,7 @@ int ItemContainer::getNumberOfSlotsUsed()
int NumberOfFilledSlot = 0;
for (int i = 0; i < INVENTORY_SIZE; i++)
{
- if (items[i].quantity > 0)
+ if (items[i].id > -1 || items[i].quantity > 0)
{
NumberOfFilledSlot++;
}