summaryrefslogtreecommitdiff
path: root/src/gui/popups
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-17 00:32:31 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-17 00:32:31 +0300
commitc841447e5196a34f62860189b0960d78a0ce1ced (patch)
treee5f05710175f701377cedd9345488726d0224c33 /src/gui/popups
parente5698022dfae8aec4c9b4696dc6a93d5edc84d5d (diff)
downloadplus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.gz
plus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.bz2
plus-c841447e5196a34f62860189b0960d78a0ce1ced.tar.xz
plus-c841447e5196a34f62860189b0960d78a0ce1ced.zip
Remove getter for buySellHandler.
Diffstat (limited to 'src/gui/popups')
-rw-r--r--src/gui/popups/popupmenu.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/popups/popupmenu.cpp b/src/gui/popups/popupmenu.cpp
index 423e340c4..89de39145 100644
--- a/src/gui/popups/popupmenu.cpp
+++ b/src/gui/popups/popupmenu.cpp
@@ -918,22 +918,22 @@ void PopupMenu::handleLink(const std::string &link,
if (being->getType() == ActorType::Npc)
Net::getNpcHandler()->buy(mBeingId);
else if (being->getType() == ActorType::Player)
- Net::getBuySellHandler()->requestSellList(being->getName());
+ buySellHandler->requestSellList(being->getName());
}
else if (link == "buy" && !mNick.empty())
{
- Net::getBuySellHandler()->requestSellList(mNick);
+ buySellHandler->requestSellList(mNick);
}
else if (link == "sell" && being && mBeingId != 0)
{
if (being->getType() == ActorType::Npc)
Net::getNpcHandler()->sell(mBeingId);
else if (being->getType() == ActorType::Player)
- Net::getBuySellHandler()->requestBuyList(being->getName());
+ buySellHandler->requestBuyList(being->getName());
}
else if (link == "sell" && !mNick.empty())
{
- Net::getBuySellHandler()->requestBuyList(mNick);
+ buySellHandler->requestBuyList(mNick);
}
else if (link == "attack" && being)
{