summaryrefslogtreecommitdiff
path: root/src/net/eathena/vendingrecv.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-02-01 00:43:24 +0300
committerAndrei Karas <akaras@inbox.ru>2017-02-01 00:45:05 +0300
commit2c273a20b2cd3e1628840f2d87df16f0cce9ad33 (patch)
tree853d172e0fd05117d84eda712912ba2843bb87e2 /src/net/eathena/vendingrecv.cpp
parent35481061f62111f916a39ce3cac6a314579418f9 (diff)
downloadmv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.gz
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.bz2
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.tar.xz
mv-2c273a20b2cd3e1628840f2d87df16f0cce9ad33.zip
Set currency to buy dialog based on selected npc type id.
For now this type never set.
Diffstat (limited to 'src/net/eathena/vendingrecv.cpp')
-rw-r--r--src/net/eathena/vendingrecv.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/net/eathena/vendingrecv.cpp b/src/net/eathena/vendingrecv.cpp
index f5168abac..6d583bca6 100644
--- a/src/net/eathena/vendingrecv.cpp
+++ b/src/net/eathena/vendingrecv.cpp
@@ -24,6 +24,8 @@
#include "itemcolormanager.h"
#include "notifymanager.h"
+#include "const/resources/currency.h"
+
#include "being/localplayer.h"
#include "being/playerinfo.h"
@@ -109,7 +111,7 @@ void VendingRecv::processItemsList(Net::MessageIn &msg)
if (!being)
return;
int cards[maxCards];
- CREATEWIDGETV(mBuyDialog, BuyDialog, being);
+ CREATEWIDGETV(mBuyDialog, BuyDialog, being, DEFAULT_CURRENCY);
mBuyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY));
if (msg.getVersion() >= 20100105)
msg.readInt32("vender id");