Browse Source

compiler: loadunits: fixed isLoaded

mattias 6 days ago
parent
commit
b85b81303d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      compiler/pmodules.pas

+ 1 - 1
compiler/pmodules.pas

@@ -732,7 +732,7 @@ implementation
             if pu.in_uses and
             if pu.in_uses and
                (pu.in_interface=frominterface) then
                (pu.in_interface=frominterface) then
              begin
              begin
-               if (lu.state in [ms_processed, ms_compiled,ms_compiling_waitimpl]) then
+               if (lu.state in [ms_compiling_waitimpl..ms_compiled,ms_processed]) then
                  isLoaded:=true
                  isLoaded:=true
                else if (lu.state=ms_registered) then
                else if (lu.state=ms_registered) then
                   // try to load
                   // try to load