mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-21 01:37:37 +01:00
*Fix the bug about arena personal rating.
*Update to Mangos 6870. Source: Mangos. Main change: add a function SaveDataFieldToDB(). --HG-- branch : trunk
This commit is contained in:
@@ -977,7 +977,7 @@ void WorldSession::HandleGuildBankDeposit( WorldPacket & recv_data )
|
||||
|
||||
pGuild->SetBankMoney(pGuild->GetGuildBankMoney()+money);
|
||||
GetPlayer()->ModifyMoney(-int(money));
|
||||
GetPlayer()->SaveGoldToDB();
|
||||
GetPlayer()->SaveDataFieldToDB(); //contains money
|
||||
|
||||
CharacterDatabase.CommitTransaction();
|
||||
|
||||
@@ -1033,7 +1033,7 @@ void WorldSession::HandleGuildBankWithdraw( WorldPacket & recv_data )
|
||||
}
|
||||
|
||||
GetPlayer()->ModifyMoney(money);
|
||||
GetPlayer()->SaveGoldToDB();
|
||||
GetPlayer()->SaveDataFieldToDB(); // contains money
|
||||
|
||||
CharacterDatabase.CommitTransaction();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user