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:
hondacrx
2024-02-27 13:43:42 -05:00
parent 86a3021dc6
commit 5406d75d0d
4 changed files with 9 additions and 12 deletions
+2 -2
View File
@@ -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