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:
@@ -2467,7 +2467,7 @@ inline void Guild::_DecreaseMemberRemainingSlots(SQLTransaction& trans, const ui
|
||||
// Remaining slots must be more then 0
|
||||
if (uint32 remainingSlots = _GetMemberRemainingSlots(guid, tabId))
|
||||
// Ignore guild master
|
||||
if (remainingSlots < GUILD_WITHDRAW_SLOT_UNLIMITED)
|
||||
if (remainingSlots < uint32(GUILD_WITHDRAW_SLOT_UNLIMITED))
|
||||
if (Member* pMember = GetMember(guid))
|
||||
pMember->DecreaseBankRemainingValue(trans, tabId, 1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user