From 822dbe27c74524266d914d134ca9958af7041950 Mon Sep 17 00:00:00 2001 From: "Alexander S. Aganichev" Date: Sat, 7 Jul 2001 18:13:16 +0000 Subject: [PATCH] Areagroups sort fixed, removed useless code --- golded3/gealst.cpp | 4 ++-- golded3/gemlst.cpp | 9 +++------ 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/golded3/gealst.cpp b/golded3/gealst.cpp index 740e4c2..ddd3ecc 100644 --- a/golded3/gealst.cpp +++ b/golded3/gealst.cpp @@ -65,13 +65,13 @@ int compare_groups(int ga, int gb) gbp = strchr(CFG->arealistgrouporder, (char)gb); if(gap == NULL) { if(gbp != NULL) - return -1; + return 1; else return compare_two(ga, gb); } else { if(gbp == NULL) - return 1; + return -1; else return compare_two(gap, gbp); } diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 4842a7d..ad96e52 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -889,19 +889,16 @@ void GThreadlist::recursive_build(ulong msgn, ulong rn) { if(not AA->Msgn.ToReln(t.replynext)) t.replynext = 0; - uint j; + uint j, list_size = list.size(); bool found = false; - for(j=0; j