From 0bc81cb39f48fdade13cf964702072cd9a7e324d Mon Sep 17 00:00:00 2001 From: Jan-Fabian Humann Date: Tue, 10 May 2005 15:17:17 +0000 Subject: fixing a bug which occured when ItemManager's constructor calls logger (for example if items.xml is missing) --- src/gui/sell.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/sell.cpp') diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index e12b61ed..f2e1677f 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -94,7 +94,7 @@ void SellDialog::addItem(short index, 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.index = index; item_shop.id = id; -- cgit v1.2.3-70-g09d2