summaryrefslogtreecommitdiff
path: root/src/gui/inventory.cpp
diff options
context:
space:
mode:
authorJan-Fabian Humann <malastare@gmx.net>2005-05-10 15:17:17 +0000
committerJan-Fabian Humann <malastare@gmx.net>2005-05-10 15:17:17 +0000
commit0bc81cb39f48fdade13cf964702072cd9a7e324d (patch)
treede2d35865253ede90a893da57fc8ab30a599bdb6 /src/gui/inventory.cpp
parentc8a7dd468b50e8cfd84c859f0a03c68b176942e9 (diff)
downloadmana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.gz
mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.bz2
mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.xz
mana-client-0bc81cb39f48fdade13cf964702072cd9a7e324d.zip
fixing a bug which occured when ItemManager's constructor calls logger (for example if items.xml is missing)
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 5082e7cb..38537eb7 100644
--- a/src/gui/inventory.cpp
+++ b/src/gui/inventory.cpp
@@ -183,10 +183,10 @@ void InventoryWindow::mouseClick(int x, int y, int button, int count)
// Show Name and Description
std::string SomeText;
- SomeText = "Name: " + itemDb.getItemInfo(items->getId())->getName();
+ SomeText = "Name: " + itemDb->getItemInfo(items->getId())->getName();
itemNameLabel->setCaption(SomeText);
itemNameLabel->adjustSize();
- SomeText = "Description: " + itemDb.getItemInfo(items->getId())->getDescription();
+ SomeText = "Description: " + itemDb->getItemInfo(items->getId())->getDescription();
itemDescriptionLabel->setCaption(SomeText);
itemDescriptionLabel->adjustSize();
}