summaryrefslogtreecommitdiff
path: root/src/gui/buy.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/buy.cpp
parentc8a7dd468b50e8cfd84c859f0a03c68b176942e9 (diff)
downloadmana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.gz
mana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.bz2
mana-0bc81cb39f48fdade13cf964702072cd9a7e324d.tar.xz
mana-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/buy.cpp')
-rw-r--r--src/gui/buy.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/buy.cpp b/src/gui/buy.cpp
index e55866fb..79f21227 100644
--- a/src/gui/buy.cpp
+++ b/src/gui/buy.cpp
@@ -113,7 +113,7 @@ void BuyDialog::addItem(short id, int price)
ITEM_SHOP item_shop;
sprintf(item_shop.name, "%s %i gp",
- itemDb.getItemInfo(id)->getName().c_str(), price);
+ itemDb->getItemInfo(id)->getName().c_str(), price);
item_shop.price = price;
item_shop.id = id;
@@ -173,9 +173,9 @@ void BuyDialog::mouseClick(int x, int y, int button, int count)
if (selectedItem > -1)
{
itemNameLabel->setCaption("Name: " +
- itemDb.getItemInfo(shopInventory[selectedItem].id)->getName());
+ itemDb->getItemInfo(shopInventory[selectedItem].id)->getName());
itemDescLabel->setCaption("Description: " +
- itemDb.getItemInfo(shopInventory[selectedItem].id)->getDescription());
+ itemDb->getItemInfo(shopInventory[selectedItem].id)->getDescription());
}
}