mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 18:15:31 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Achievements/AchievementMgr.cpp
This commit is contained in:
@@ -2072,6 +2072,9 @@ void Guild::HandleMemberDepositMoney(WorldSession* session, uint64 amount, bool
|
||||
|
||||
bool Guild::HandleMemberWithdrawMoney(WorldSession* session, uint64 amount, bool repair)
|
||||
{
|
||||
// clamp amount to MAX_MONEY_AMOUNT, Players can't hold more than that anyway
|
||||
amount = std::min(amount, uint64(MAX_MONEY_AMOUNT));
|
||||
|
||||
if (m_bankMoney < amount) // Not enough money in bank
|
||||
return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user