diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-26 23:22:06 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-26 23:22:06 +0300 |
commit | 22e1d3794fb293a5336d66199fb7463aeea7faf9 (patch) | |
tree | 6530afb9ceb9051c33364dec6259630818d59f88 | |
parent | 384170a93ed0ef61e7cab20f19ee91f2dad5f6f7 (diff) | |
download | plus-22e1d3794fb293a5336d66199fb7463aeea7faf9.tar.gz plus-22e1d3794fb293a5336d66199fb7463aeea7faf9.tar.bz2 plus-22e1d3794fb293a5336d66199fb7463aeea7faf9.tar.xz plus-22e1d3794fb293a5336d66199fb7463aeea7faf9.zip |
Fix possible issues in guild members sorting.
-rw-r--r-- | src/guild.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/guild.cpp b/src/guild.cpp index 121b3b416..35349e5d3 100644 --- a/src/guild.cpp +++ b/src/guild.cpp @@ -43,12 +43,12 @@ static class SortGuildFunctor final if (m1->getOnline() != m2->getOnline()) { - return static_cast<int>(m1->getOnline()) > + return static_cast<int>(m1->getOnline()) >= static_cast<int>(m2->getOnline()); } if (m1->getPos() != m2->getPos()) - return m1->getPos() > m2->getPos(); + return m1->getPos() >= m2->getPos(); if (m1->getName() != m2->getName()) { |