fix redundant searches in FindObjectFile, if the object was found on the first try

git-svn-id: trunk@24725 -
This commit is contained in:
Károly Balogh 2013-06-01 15:21:57 +00:00
parent ed5891f146
commit e7094cf1d6

View File

@ -210,8 +210,8 @@ Implementation
begin
if FileExists(FixFileName(s),false) then
begin
foundfile:=ScriptFixFileName(s);
found:=true;
findobjectfile:=ScriptFixFileName(s);
exit;
end;
end;
if pos('.',s)=0 then