summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 ++)