hedgewars/uUtils.pas
changeset 10605 df7a73db2c43
parent 10603 bda5c7caf396
child 10606 8e95911cb86b
child 10690 c3b73dc33294
--- 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)