Explorar o código

* Fix error out of bounds

Michaël Van Canneyt hai 1 ano
pai
achega
cdda954ea7
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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