summaryrefslogtreecommitdiff
path: root/src/gui/sell.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 15:36:49 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2005-04-21 15:36:49 +0000
commit56fef6eed9e3145b5e7d33e066069f642873d7a1 (patch)
tree10ee9c20bfa294abbbb2b96901bc0b2830007288 /src/gui/sell.cpp
parent9db3ea6a43d78bc959eef9fd594141d3a4063c0b (diff)
downloadmana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.gz
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.bz2
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.tar.xz
mana-client-56fef6eed9e3145b5e7d33e066069f642873d7a1.zip
trying to follow Hammerbear suggestions
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r--src/gui/sell.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp
index 2c9e8745..711a417e 100644
--- a/src/gui/sell.cpp
+++ b/src/gui/sell.cpp
@@ -93,7 +93,8 @@ void SellDialog::addItem(short index, int price)
int id = inventoryWindow->items->getId(index);
ITEM_SHOP item_shop;
- sprintf(item_shop.name, "%s %i gp", itemDb.getName(id).c_str(), price);
+ sprintf(item_shop.name, "%s %i gp",
+ itemDb.getItemInfo(id)->getName().c_str(), price);
item_shop.price = price;
item_shop.index = index;
item_shop.id = id;