summaryrefslogtreecommitdiff
path: root/src/gui/itemcontainer.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-01 06:41:26 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-10-01 06:41:26 +0000
commit3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d (patch)
tree4a4cb6b490acdb05d4d414c2493223a4a3845baa /src/gui/itemcontainer.cpp
parent3a3789a2c8cca53ece5ede1de9ee6d96707c76fc (diff)
downloadmana-3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d.tar.gz
mana-3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d.tar.bz2
mana-3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d.tar.xz
mana-3b79ce4edf01b19a9ca0d1cb75ce38da8384b41d.zip
Fixed inventory display with respect to empty slots.
Diffstat (limited to 'src/gui/itemcontainer.cpp')
-rw-r--r--src/gui/itemcontainer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gui/itemcontainer.cpp b/src/gui/itemcontainer.cpp
index e38b665f..c7ba2949 100644
--- a/src/gui/itemcontainer.cpp
+++ b/src/gui/itemcontainer.cpp
@@ -96,6 +96,8 @@ ItemContainer::draw(gcn::Graphics *graphics)
if (!item)
return;
+ if (item->getId() == 0)
+ continue;
Image *image = item->getInfo().getImage();
if (image)
{