From d34decaf8b2b4cbffca970e9059e1a2b4f463055 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 22 Sep 2014 14:04:40 +0300 Subject: Move npc sell code from SellDialog into NpcSellDialog. --- src/net/ea/buysellhandler.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/net/ea/buysellhandler.cpp') 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++) -- cgit v1.2.3-60-g2f50