Browse Source

Fix TSetupCompiler.FilenameToFileIndex.

Martijn Laan 4 years ago
parent
commit
101b14474d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Projects/Compile.pas

+ 1 - 1
Projects/Compile.pas

@@ -1731,7 +1731,7 @@ begin
       if PrevFileIndex = -1 then
         AbortCompileFmt('Failed to find index of file (%s)', [AFilename]);
     end;
-    PrevFilename := LineFilename;
+    PrevFilename := AFilename;
     GotPrevFilename := True;
   end;
   Result := PrevFileIndex;