diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-04-13 19:33:05 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-04-13 19:33:05 +0000 |
commit | 3d69592e8e786901c0e3a3f3ad2aacad3dab1885 (patch) | |
tree | 06d022a26af63d4a5aafc8f32b9285931707b74a | |
parent | 4b7cbd2a0ade9f40714194d59dc5bc7836778344 (diff) | |
download | mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.gz mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.bz2 mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.tar.xz mana-3d69592e8e786901c0e3a3f3ad2aacad3dab1885.zip |
getNumberOfSlotsUsed() tweaked a little. Still problems.
-rw-r--r-- | src/gui/itemcontainer.cpp | 2 |
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++; } |