mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r1628) -Fix: [1107893] script command; log file pointer was not reset to NULL after logging was closed
This commit is contained in:
parent
94dc25b45f
commit
dd6a6fa7ec
|
@ -284,6 +284,7 @@ bool CloseConsoleLogIfActive(void)
|
||||||
if (_iconsole_output_file != NULL) {
|
if (_iconsole_output_file != NULL) {
|
||||||
IConsolePrintF(_iconsole_color_default, "file output complete");
|
IConsolePrintF(_iconsole_color_default, "file output complete");
|
||||||
fclose(_iconsole_output_file);
|
fclose(_iconsole_output_file);
|
||||||
|
_iconsole_output_file = NULL;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue