summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorM. Kristall <mkpdev@gmail.com>2011-06-15 20:56:27 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:18:09 +0000
commitbbcc76687e7f0d87ee9981999b9893822ca03506 (patch)
treec775c2520f6464e4c75e6e7e35bd6ad44559968f
parent094ca7ca1332b2cc5b1afa92b739744dc6808a7b (diff)
* Admins were sorted, but the sort function was not quite stable
-rw-r--r--src/game/g_admin.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game/g_admin.c b/src/game/g_admin.c
index a979a774..faad787e 100644
--- a/src/game/g_admin.c
+++ b/src/game/g_admin.c
@@ -1019,7 +1019,7 @@ static void llsort( struct llist **head, int compar( const void *, const void *
}
for( bs = c; ( b && bs ) || as; l = t )
{
- if( as && ( !bs || !b || compar( a, b ) < 0 ) )
+ if( as && ( !bs || !b || compar( a, b ) <= 0 ) )
t = a, a = a->next, as--;
else
t = b, b = b->next, bs--;