mirror of
https://github.com/mangosfour/server.git
synced 2025-12-19 04:37:06 +00:00
Some code cleanup.
This commit is contained in:
parent
d5f638b8c8
commit
65229fcf4e
32 changed files with 107 additions and 91 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue