summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorYohann Ferreira <bertram@cegetel.net>2005-05-05 19:50:43 +0000
committerYohann Ferreira <bertram@cegetel.net>2005-05-05 19:50:43 +0000
commit58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def (patch)
treee8b6ed15c872e8cdab226a24f6262b05ac26c145 /src
parent57ce7b92a3c7783d609338131a0a5a4fd967b32b (diff)
downloadmana-client-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.gz
mana-client-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.bz2
mana-client-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.xz
mana-client-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.zip
Inventory little bug fixed.
Diffstat (limited to 'src')
-rw-r--r--src/gui/inventory.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/inventory.cpp b/src/gui/inventory.cpp
index 6c7647b4..fff91065 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -185,10 +185,10 @@ void InventoryWindow::mouseClick(int x, int y, int button, int count)
// Show Name and Description
std::string SomeText;
- SomeText = "Name: " + itemDb.getItemInfo(items->getIndex())->getName();
+ SomeText = "Name: " + itemDb.getItemInfo(items->getId())->getName();
itemNameLabel->setCaption(SomeText);
itemNameLabel->adjustSize();
- SomeText = "Description: " + itemDb.getItemInfo(items->getIndex())->getDescription();
+ SomeText = "Description: " + itemDb.getItemInfo(items->getId())->getDescription();
itemDescriptionLabel->setCaption(SomeText);
itemDescriptionLabel->adjustSize();
}