summaryrefslogtreecommitdiff
path: root/src/gui/sell.h
diff options
context:
space:
mode:
authorBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-23 21:11:53 +0000
committerBjörn Steinbrink <B.Steinbrink@gmx.de>2005-08-23 21:11:53 +0000
commitedfe5e4525d16a477a1c88344e3321ccf23b605e (patch)
treecf6be7f81ef24ef6d56c0291fbcb80df4899ece8 /src/gui/sell.h
parentd39602e433ce887e9f921e7c472a8e5af16fa7ec (diff)
downloadmana-edfe5e4525d16a477a1c88344e3321ccf23b605e.tar.gz
mana-edfe5e4525d16a477a1c88344e3321ccf23b605e.tar.bz2
mana-edfe5e4525d16a477a1c88344e3321ccf23b605e.tar.xz
mana-edfe5e4525d16a477a1c88344e3321ccf23b605e.zip
Some code cleanups in the sell dialog. Made the dialog accept items instead of looking them up in the inventory itself.
Diffstat (limited to 'src/gui/sell.h')
-rw-r--r--src/gui/sell.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/sell.h b/src/gui/sell.h
index 9d1325a0..5cf5479e 100644
--- a/src/gui/sell.h
+++ b/src/gui/sell.h
@@ -33,8 +33,9 @@
#include "../guichanfwd.h"
-struct ITEM_SHOP;
+class Item;
+struct ITEM_SHOP;
/**
* The sell dialog.
@@ -65,7 +66,7 @@ class SellDialog : public Window, public gcn::ActionListener,
/**
* Adds an item to the inventory.
*/
- void addItem(short id, int price);
+ void addItem(Item *item, int price);
/**
* Called when receiving actions from the widgets.