summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-01-31 18:24:42 +0300
committerAndrei Karas <akaras@inbox.ru>2017-01-31 18:24:42 +0300
commit31e7a7d05f36495df0176fc31d5894e216c3cdf4 (patch)
tree88b1b320d8c6095acfe58064120c407616c8e98b
parentcdd2dd27b61e36a376dc32947fd9e29f0a492d9b (diff)
downloadmanaplus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.gz
manaplus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.bz2
manaplus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.xz
manaplus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.zip
Fix money amount in cash shops.
-rw-r--r--src/net/eathena/cashshoprecv.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/eathena/cashshoprecv.cpp b/src/net/eathena/cashshoprecv.cpp
index d9912342f..e051f8ba0 100644
--- a/src/net/eathena/cashshoprecv.cpp
+++ b/src/net/eathena/cashshoprecv.cpp
@@ -53,9 +53,10 @@ void CashShopRecv::processCashShopOpen(Net::MessageIn &msg)
count = (msg.readInt16("len") - 8) / 11;
CREATEWIDGETV(mBuyDialog, BuyDialog, fromInt(BuyDialog::Cash, BeingId));
- mBuyDialog->setMoney(PlayerInfo::getAttribute(Attributes::MONEY));
+ const int points = msg.readInt32("cash points");
+
+ mBuyDialog->setMoney(points);
- msg.readInt32("cash points");
if (packetVersion >= 20070711)
msg.readInt32("kafra points");
for (int f = 0; f < count; f ++)