Martijn Laan 7 years ago
parent
commit
af3569dfe4
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Projects/ScriptCompiler.pas

+ 1 - 1
Projects/ScriptCompiler.pas

@@ -392,7 +392,7 @@ begin
     if ((Name = '') or (CompareText(ScriptExport.Name, Name) = 0)) and
        ((Decl = '') or (CompareText(ScriptExport.Decl, Decl) = 0)) and
        ((IgnoreIndex = -1) or (I <> IgnoreIndex)) then begin
-      Result := 0;
+      Result := I;
       Exit;
     end;
   end;