diff options
Diffstat (limited to 'src/gui/windows')
-rw-r--r-- | src/gui/windows/buyselldialog.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/gui/windows/buyselldialog.cpp b/src/gui/windows/buyselldialog.cpp index 26a8506d2..6969b8fc0 100644 --- a/src/gui/windows/buyselldialog.cpp +++ b/src/gui/windows/buyselldialog.cpp @@ -22,6 +22,8 @@ #include "gui/windows/buyselldialog.h" +#include "actormanager.h" + #include "net/buysellhandler.h" #include "net/npchandler.h" @@ -129,9 +131,14 @@ void BuySellDialog::action(const ActionEvent &event) if (eventId == "Buy") { if (mNpcId != BeingId_negOne) - npcHandler->buy(mNpcId); + { + const Being *const being = actorManager->findBeing(mNpcId); + npcHandler->buy(being); + } else + { buySellHandler->requestSellList(mNick); + } } else if (eventId == "Sell") { |