Martijn Laan 7 年之前
父節點
當前提交
af3569dfe4
共有 1 個文件被更改,包括 1 次插入1 次删除
  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;