diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 19:44:23 +0100 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-03-27 20:18:11 +0100 |
commit | 712ca58c011123505c807266dcc8d9d84ca1aa44 (patch) | |
tree | 27c0dfe49f21bffe25007f70475be3223d3fa851 /src/gui/sell.cpp | |
parent | ff5e1957dd4fde40e41e4c5e4b9e04e1f36e5ef2 (diff) | |
download | mana-712ca58c011123505c807266dcc8d9d84ca1aa44.tar.gz mana-712ca58c011123505c807266dcc8d9d84ca1aa44.tar.bz2 mana-712ca58c011123505c807266dcc8d9d84ca1aa44.tar.xz mana-712ca58c011123505c807266dcc8d9d84ca1aa44.zip |
Made eAthena's Network class statically accessible
Now the instance doesn't need to be passed into the MessageOut class
anymore. Expect a lot of cleanup in the next commit.
Diffstat (limited to 'src/gui/sell.cpp')
-rw-r--r-- | src/gui/sell.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/sell.cpp b/src/gui/sell.cpp index e7671110..648bff08 100644 --- a/src/gui/sell.cpp +++ b/src/gui/sell.cpp @@ -207,15 +207,13 @@ void SellDialog::action(const gcn::ActionEvent &event) (mShopItems->at(selectedItem)->getId(), mAmountItems); #else // Attempt sell - MessageOut outMsg(mNetwork); - ShopItem *item = mShopItems->at(selectedItem); int sellCount; mPlayerMoney += mAmountItems * mShopItems->at(selectedItem)->getPrice(); mMaxItems -= mAmountItems; while (mAmountItems > 0) { - outMsg.writeInt16(CMSG_NPC_SELL_REQUEST); + MessageOut outMsg(CMSG_NPC_SELL_REQUEST); outMsg.writeInt16(8); outMsg.writeInt16(item->getCurrentInvIndex()); // This order is important, item->getCurrentInvIndex() would return |