Some code cleanup.

This commit is contained in:
H0zen 2017-06-06 02:41:26 +03:00 committed by Antz
parent d5f638b8c8
commit 65229fcf4e
32 changed files with 107 additions and 91 deletions

View file

@ -792,7 +792,7 @@ void Guild::SwitchRank(uint32 rankId, bool up)
if (rankId >= m_Ranks.size())
return;
if (rankId == GR_GUILDMASTER && up || rankId == GetLowestRank() && !up)
if ((rankId == GR_GUILDMASTER && up) || (rankId == GetLowestRank() && !up))
return;
uint32 otherRankId = rankId + (up ? -1 : 1);