From f8ab6d0c901e96a9136cec862a00c3c879257ac4 Mon Sep 17 00:00:00 2001 From: Ianos Gnatiuc Date: Sat, 30 Sep 2006 06:45:34 +0000 Subject: [PATCH] Fixed thread starting position. --- golded3/gemlst.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/golded3/gemlst.cpp b/golded3/gemlst.cpp index 1d0ff3c..4c4e0ae 100644 --- a/golded3/gemlst.cpp +++ b/golded3/gemlst.cpp @@ -1115,11 +1115,14 @@ void GThreadlist::BuildThreadIndex(dword msgn) index = 0; h_offset = 0; new_hoffset = 0; + } - for (uint i = 0; i < list.size(); i++) + for (uint i = 0; i < list.size(); i++) + { + if (list[i].msgno == msgn) { - if (list[i].msgno == msgn) - index = i; + index = i; + break; } }