summaryrefslogtreecommitdiff
path: root/src/gui/windows/buyselldialog.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 11:14:13 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 11:14:13 +0300
commitdc5766216ee50103909d3b5dcdc5747c149855e0 (patch)
treedb7960089152805498449c0f1b2a392d36543607 /src/gui/windows/buyselldialog.cpp
parent85c6d5c89ca967020e1a0818c9fa80c065873cc1 (diff)
downloadmanaverse-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.gz
manaverse-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.bz2
manaverse-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.xz
manaverse-dc5766216ee50103909d3b5dcdc5747c149855e0.zip
Remove getter for npcHandler.
Diffstat (limited to 'src/gui/windows/buyselldialog.cpp')
-rw-r--r--src/gui/windows/buyselldialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/windows/buyselldialog.cpp b/src/gui/windows/buyselldialog.cpp
index f8d2ec954..701eb96bc 100644
--- a/src/gui/windows/buyselldialog.cpp
+++ b/src/gui/windows/buyselldialog.cpp
@@ -130,14 +130,14 @@ void BuySellDialog::action(const ActionEvent &event)
if (eventId == "Buy")
{
if (mNpcId != -1)
- Net::getNpcHandler()->buy(mNpcId);
+ npcHandler->buy(mNpcId);
else
buySellHandler->requestSellList(mNick);
}
else if (eventId == "Sell")
{
if (mNpcId != -1)
- Net::getNpcHandler()->sell(mNpcId);
+ npcHandler->sell(mNpcId);
else
buySellHandler->requestBuyList(mNick);
}