Skip to content

Commit

Permalink
Merge pull request #5744 from MrSmite/Guild_1
Browse files Browse the repository at this point in the history
Core/Guilds: Allow deposit / withdraw money in guild banks without having tabs
  • Loading branch information
Shocker committed Mar 16, 2012
2 parents 6d95e24 + 887470e commit 68ad764
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/server/game/Guilds/Guild.cpp
Expand Up @@ -1616,9 +1616,6 @@ void Guild::HandleRemoveLowestRank(WorldSession* session)

void Guild::HandleMemberDepositMoney(WorldSession* session, uint32 amount)
{
if (!_GetPurchasedTabsSize())
return; // No guild bank tabs - no money in bank

Player* player = session->GetPlayer();

// Call script after validation and before money transfer.
Expand Down Expand Up @@ -1649,9 +1646,6 @@ void Guild::HandleMemberDepositMoney(WorldSession* session, uint32 amount)

bool Guild::HandleMemberWithdrawMoney(WorldSession* session, uint32 amount, bool repair)
{
if (!_GetPurchasedTabsSize())
return false; // No guild bank tabs - no money

if (m_bankMoney < amount) // Not enough money in bank
return false;

Expand Down

0 comments on commit 68ad764

Please sign in to comment.