summaryrefslogtreecommitdiff
path: root/console.c
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
commitdd6a6fa7ecd3f7f7389ea4ac86cbb03875d16caa (patch)
tree6d196c45d4faea6a4d8c390e6a15db646edc579a /console.c
parent94dc25b45f37fa403d367a64d36833b4cf70c625 (diff)
downloadopenttd-dd6a6fa7ecd3f7f7389ea4ac86cbb03875d16caa.tar.xz
(svn r1628) -Fix: [1107893] script command; log file pointer was not reset to NULL after logging was closed
Diffstat (limited to 'console.c')
-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;
}