Core/Guilds: Fix logic in bank withdrawal method (unsigned comparison with signed value). Should fix certain guild bank related bugs.

--HG--
branch : trunk
This commit is contained in:
Machiavelli
2010-12-13 16:42:09 +01:00
parent 976225a9dd
commit 1a4fe4baca
+1 -1
View File
@@ -2467,7 +2467,7 @@ inline void Guild::_DecreaseMemberRemainingSlots(SQLTransaction& trans, const ui
// Remaining slots must be more then 0 // Remaining slots must be more then 0
if (uint32 remainingSlots = _GetMemberRemainingSlots(guid, tabId)) if (uint32 remainingSlots = _GetMemberRemainingSlots(guid, tabId))
// Ignore guild master // Ignore guild master
if (remainingSlots < GUILD_WITHDRAW_SLOT_UNLIMITED) if (remainingSlots < uint32(GUILD_WITHDRAW_SLOT_UNLIMITED))
if (Member* pMember = GetMember(guid)) if (Member* pMember = GetMember(guid))
pMember->DecreaseBankRemainingValue(trans, tabId, 1); pMember->DecreaseBankRemainingValue(trans, tabId, 1);
} }