summaryrefslogtreecommitdiff
path: root/src/gui/popups/popupmenu.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/popups/popupmenu.cpp
parent85c6d5c89ca967020e1a0818c9fa80c065873cc1 (diff)
downloadplus-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.gz
plus-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.bz2
plus-dc5766216ee50103909d3b5dcdc5747c149855e0.tar.xz
plus-dc5766216ee50103909d3b5dcdc5747c149855e0.zip
Remove getter for npcHandler.
Diffstat (limited to 'src/gui/popups/popupmenu.cpp')
-rw-r--r--src/gui/popups/popupmenu.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 1c4722419..aa5a983fc 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -916,7 +916,7 @@ void PopupMenu::handleLink(const std::string &link,
else if (link == "buy" && being && mBeingId != 0)
{
if (being->getType() == ActorType::Npc)
- Net::getNpcHandler()->buy(mBeingId);
+ npcHandler->buy(mBeingId);
else if (being->getType() == ActorType::Player)
buySellHandler->requestSellList(being->getName());
}
@@ -927,7 +927,7 @@ void PopupMenu::handleLink(const std::string &link,
else if (link == "sell" && being && mBeingId != 0)
{
if (being->getType() == ActorType::Npc)
- Net::getNpcHandler()->sell(mBeingId);
+ npcHandler->sell(mBeingId);
else if (being->getType() == ActorType::Player)
buySellHandler->requestBuyList(being->getName());
}