diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-23 21:11:53 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2005-08-23 21:11:53 +0000 |
commit | edfe5e4525d16a477a1c88344e3321ccf23b605e (patch) | |
tree | cf6be7f81ef24ef6d56c0291fbcb80df4899ece8 /src/gui/sell.h | |
parent | d39602e433ce887e9f921e7c472a8e5af16fa7ec (diff) | |
download | mana-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.h | 5 |
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. |