From 58db4a63659c7bb0ed8ac8bf5ab967bb3ff39def Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Thu, 5 May 2005 19:50:43 +0000 Subject: Inventory little bug fixed. --- src/gui/inventory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/inventory.cpp') 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(); } -- cgit v1.2.3-70-g09d2