diff --git a/sourcepawn/batchtool/compile.exe b/sourcepawn/batchtool/compile.exe index 55dbad214..22f1ebb54 100644 Binary files a/sourcepawn/batchtool/compile.exe and b/sourcepawn/batchtool/compile.exe differ diff --git a/sourcepawn/batchtool/uFunc.pas b/sourcepawn/batchtool/uFunc.pas index 2c98d61ad..6d7646439 100644 --- a/sourcepawn/batchtool/uFunc.pas +++ b/sourcepawn/batchtool/uFunc.pas @@ -86,7 +86,7 @@ begin try cStart := GetTickCount; - if not GetConsoleOutput(ExtractFilePath(ParamStr(0))+COMPILER_EXE+' "'+FileName+'" "-o'+Compiled+'"',Output) then + if not GetConsoleOutput(ExtractFilePath(ParamStr(0))+COMPILER_EXE+' "'+Name+'" "-o'+Compiled+'"',Output) then begin WriteLn('// Internal error.'); AppExit;