summaryrefslogtreecommitdiff
path: root/src/net/tmwa/buysellrecv.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/net/tmwa/buysellrecv.cpp')
-rw-r--r--src/net/tmwa/buysellrecv.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/tmwa/buysellrecv.cpp b/src/net/tmwa/buysellrecv.cpp
index 6a30f7bc6..7f4ed9de8 100644
--- a/src/net/tmwa/buysellrecv.cpp
+++ b/src/net/tmwa/buysellrecv.cpp
@@ -26,6 +26,8 @@
#include "being/playerinfo.h"
+#include "const/resources/currency.h"
+
#include "enums/resources/notifytypes.h"
#include "gui/windows/buydialog.h"
@@ -36,6 +38,8 @@
#include "net/ea/buysellrecv.h"
+#include "resources/db/npcdb.h"
+
#include "debug.h"
namespace TmwAthena
@@ -46,7 +50,8 @@ void BuySellRecv::processNpcBuy(Net::MessageIn &msg)
msg.readInt16("len");
const unsigned int n_items = (msg.getLength() - 4U) / 11;
CREATEWIDGETV(Ea::BuySellRecv::mBuyDialog, BuyDialog,
- Ea::BuySellRecv::mNpcId);
+ Ea::BuySellRecv::mNpcId,
+ DEFAULT_CURRENCY);
Ea::BuySellRecv::mBuyDialog->setMoney(
PlayerInfo::getAttribute(Attributes::MONEY));