diff options
author | Yohann Ferreira <bertram@cegetel.net> | 2005-05-05 19:50:43 +0000 |
---|---|---|
committer | Yohann Ferreira <bertram@cegetel.net> | 2005-05-05 19:50:43 +0000 |
commit | 58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def (patch) | |
tree | e8b6ed15c872e8cdab226a24f6262b05ac26c145 | |
parent | 57ce7b92a3c7783d609338131a0a5a4fd967b32b (diff) | |
download | mana-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.gz mana-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.bz2 mana-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.tar.xz mana-58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def.zip |
Inventory little bug fixed.
-rw-r--r-- | src/gui/inventory.cpp | 4 |
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(); } |