Core/Players: Drop Player::SaveGoldToDB() and move it's code to Player::SaveInventoryAndGoldToDB()
Port From (https://github.com/TrinityCore/TrinityCore/commit/02b977c98ec26bc21cb3e779e60e16a7587bfcb9)
This commit is contained in:
@@ -902,7 +902,7 @@ namespace Game.Guilds
|
||||
if (!cashFlow)
|
||||
{
|
||||
player.ModifyMoney(-(long)amount);
|
||||
player.SaveGoldToDB(trans);
|
||||
player.SaveInventoryAndGoldToDB(trans);
|
||||
}
|
||||
|
||||
_LogBankEvent(trans, cashFlow ? GuildBankEventLogTypes.CashFlowDeposit : GuildBankEventLogTypes.DepositMoney, 0, player.GetGUID().GetCounter(), (uint)amount);
|
||||
@@ -947,7 +947,7 @@ namespace Game.Guilds
|
||||
if (!player.ModifyMoney((long)amount))
|
||||
return false;
|
||||
|
||||
player.SaveGoldToDB(trans);
|
||||
player.SaveInventoryAndGoldToDB(trans);
|
||||
}
|
||||
|
||||
// Update remaining money amount
|
||||
|
||||
Reference in New Issue
Block a user