diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:24:42 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-01-31 18:24:42 +0300 |
commit | 31e7a7d05f36495df0176fc31d5894e216c3cdf4 (patch) | |
tree | 88b1b320d8c6095acfe58064120c407616c8e98b /src/net/eathena/cashshoprecv.cpp | |
parent | cdd2dd27b61e36a376dc32947fd9e29f0a492d9b (diff) | |
download | plus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.gz plus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.bz2 plus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.tar.xz plus-31e7a7d05f36495df0176fc31d5894e216c3cdf4.zip |
Fix money amount in cash shops.
Diffstat (limited to 'src/net/eathena/cashshoprecv.cpp')
-rw-r--r-- | src/net/eathena/cashshoprecv.cpp | 5 |
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 ++) |