Browse Source

* Fix error out of bounds

Michaël Van Canneyt 1 năm trước cách đây
mục cha
commit
cdda954ea7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/fpindexer/src/fpindexer.pp

+ 1 - 1
packages/fpindexer/src/fpindexer.pp

@@ -828,7 +828,7 @@ begin
 
   if FCount=0 then
     exit;
-  AddNewRankedItem(ResultList[i]);
+  AddNewRankedItem(ResultList[0]);
   for i := 1 to FCount - 1 do
   begin
     if SameRank(I,FRankedCount-1)  then