From b2209cbe93aa12dcd4e4e3b9a7cd8b13ed5713e9 Mon Sep 17 00:00:00 2001 From: Yohann Ferreira Date: Mon, 31 Jan 2011 02:02:43 +0100 Subject: Fixed the money handling. - At character's attributes recalculation when necessary. - In the lua scripting functions. --- src/game-server/trade.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/game-server/trade.cpp') diff --git a/src/game-server/trade.cpp b/src/game-server/trade.cpp index 5150930..bcdc997 100644 --- a/src/game-server/trade.cpp +++ b/src/game-server/trade.cpp @@ -38,7 +38,8 @@ */ Trade::Trade(Character *c1, Character *c2): - mChar1(c1), mChar2(c2), mMoney1(0), mMoney2(0), mState(TRADE_INIT), mCurrencyId(ATTR_GP) + mChar1(c1), mChar2(c2), mMoney1(0), mMoney2(0), mState(TRADE_INIT), + mCurrencyId(ATTR_MONEY) { MessageOut msg(GPMSG_TRADE_REQUEST); msg.writeInt16(c1->getPublicID()); -- cgit