diff --git a/sourcepawn/batchtool/compile.exe b/sourcepawn/batchtool/compile.exe index 55dbad21..22f1ebb5 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 2c98d61a..6d764643 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;