From 22e1d3794fb293a5336d66199fb7463aeea7faf9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 26 Mar 2018 23:22:06 +0300 Subject: Fix possible issues in guild members sorting. --- src/guild.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/guild.cpp') 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(m1->getOnline()) > + return static_cast(m1->getOnline()) >= static_cast(m2->getOnline()); } if (m1->getPos() != m2->getPos()) - return m1->getPos() > m2->getPos(); + return m1->getPos() >= m2->getPos(); if (m1->getName() != m2->getName()) { -- cgit v1.2.3-70-g09d2