summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/inventory.cpp')
-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();
}