diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-22 14:04:40 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-22 14:04:40 +0300 |
commit | d34decaf8b2b4cbffca970e9059e1a2b4f463055 (patch) | |
tree | 047edf620410b2a85ea54ba0f2c5670290317e52 /src/net/ea/buysellhandler.cpp | |
parent | f7e32db400bcfdd1b5f3c30d817ceeae5e1dc573 (diff) | |
download | manaplus-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.gz manaplus-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.bz2 manaplus-d34decaf8b2b4cbffca970e9059e1a2b4f463055.tar.xz manaplus-d34decaf8b2b4cbffca970e9059e1a2b4f463055.zip |
Move npc sell code from SellDialog into NpcSellDialog.
Diffstat (limited to 'src/net/ea/buysellhandler.cpp')
-rw-r--r-- | src/net/ea/buysellhandler.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/ea/buysellhandler.cpp b/src/net/ea/buysellhandler.cpp index 6bdc33305..fe2f7ffe0 100644 --- a/src/net/ea/buysellhandler.cpp +++ b/src/net/ea/buysellhandler.cpp @@ -31,7 +31,7 @@ #include "gui/windows/chatwindow.h" #include "gui/windows/buyselldialog.h" -#include "gui/windows/selldialog.h" +#include "gui/windows/npcselldialog.h" #include "gui/windows/buydialog.h" #include "gui/windows/shopwindow.h" @@ -146,7 +146,7 @@ void BuySellHandler::processNpcSell(Net::MessageIn &msg) const const int n_items = (msg.getLength() - 4) / 10; if (n_items > 0) { - SellDialog *const dialog = new SellDialog(mNpcId); + SellDialog *const dialog = new NpcSellDialog(mNpcId); dialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY)); for (int k = 0; k < n_items; k++) |