2
0
Martijn Laan 7 жил өмнө
parent
commit
af3569dfe4

+ 1 - 1
Projects/ScriptCompiler.pas

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