diff options
author | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
---|---|---|
committer | Björn Steinbrink <B.Steinbrink@gmx.de> | 2006-01-22 13:31:13 +0000 |
commit | bd56bf8afdab16383ed8ad08412a8c807f84af85 (patch) | |
tree | 0e963ada63bcbe3c50dd77986aaa15b9ba49816a /src/gui/sell.cpp | |
parent | 5359640b6f271af31f6423df9d661433eff89a3e (diff) | |
download | mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.gz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.bz2 mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.tar.xz mana-bd56bf8afdab16383ed8ad08412a8c807f84af85.zip |
Merged NETWORK branch (includes BEING_OVERHAUL).
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index ea5b948f..f89055b4 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -34,8 +34,8 @@ #include "shop.h" #include "slider.h" -#include "../game.h" #include "../item.h" +#include "../npc.h" #include "../resources/iteminfo.h" #include "../resources/itemmanager.h" @@ -44,8 +44,9 @@ #include "../net/protocol.h" -SellDialog::SellDialog(): +SellDialog::SellDialog(Network *network): Window("Sell"), + mNetwork(network), m_maxItems(0), m_amountItems(0) { itemList = new ListBox(this); @@ -216,7 +217,7 @@ void SellDialog::action(const std::string& eventId) // Attempt sell assert(m_amountItems > 0 && m_amountItems <= m_maxItems); - MessageOut outMsg; + MessageOut outMsg(mNetwork); outMsg.writeInt16(CMSG_NPC_SELL_REQUEST); outMsg.writeInt16(8); outMsg.writeInt16(shopInventory[selectedItem].index); |