diff -r f2f9928ea2e7 -r df7a73db2c43 hedgewars/uUtils.pas --- a/hedgewars/uUtils.pas Tue Dec 02 14:26:16 2014 -0500 +++ b/hedgewars/uUtils.pas Tue Dec 02 20:20:04 2014 +0100 @@ -559,7 +559,8 @@ begin assign(logFile, shortstring(UserPathPrefix) + '/Logs/' + logfileBase + inttostr(i) + '.log'); Rewrite(logFile); - rwfailed:= (IOResult() <> 0); + // note: IOResult is a function in pascal and a variable in pas2c + rwfailed:= (IOResult <> 0); if (not rwfailed) then break; inc(i)