From 3d69592e8e786901c0e3a3f3ad2aacad3dab1885 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Wed, 13 Apr 2005 19:33:05 +0000 Subject: getNumberOfSlotsUsed() tweaked a little. Still problems. --- src/gui/itemcontainer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui') 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++; } -- cgit v1.2.3-70-g09d2