summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-23 21:42:29 +0000
committerdarkvater <darkvater@openttd.org>2005-01-23 21:42:29 +0000
commit3554e28ad87374427d20c16a97764f6d90087e3b (patch)
tree6d196c45d4faea6a4d8c390e6a15db646edc579a
parent9ae639279d389ff89f3133c479d686878911de5f (diff)
downloadopenttd-3554e28ad87374427d20c16a97764f6d90087e3b.tar.xz
(svn r1628) -Fix: [1107893] script command; log file pointer was not reset to NULL after logging was closed
-rw-r--r--console.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/console.c b/console.c
index 84bb97bcd..e82cf23c0 100644
--- a/console.c
+++ b/console.c
@@ -284,6 +284,7 @@ bool CloseConsoleLogIfActive(void)
if (_iconsole_output_file != NULL) {
IConsolePrintF(_iconsole_color_default, "file output complete");
fclose(_iconsole_output_file);
+ _iconsole_output_file = NULL;
return true;
}