From e4c30499349a0cc5b75fce7e59dc0a4abfa0a10e Mon Sep 17 00:00:00 2001 From: tobigun Date: Thu, 27 Dec 2007 12:31:21 +0000 Subject: FileErrorO is set to true to early. Even if FileError couldn't be opened it will be set to true and hence usdx tries to close and unopened fileerror-stream later which results in a segmentation fault git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@750 b956fd51-792f-4845-bead-9b4dfca2ff2c --- Game/Code/Classes/ULog.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Game') diff --git a/Game/Code/Classes/ULog.pas b/Game/Code/Classes/ULog.pas index 01eff5f4..fc567d54 100644 --- a/Game/Code/Classes/ULog.pas +++ b/Game/Code/Classes/ULog.pas @@ -163,7 +163,7 @@ end; procedure TLog.LogError(Text: string); begin if Enabled AND (not FileErrorO) then begin - FileErrorO := true; + //FileErrorO := true; AssignFile(FileError, LogPath + 'Error.log'); {$I-} Rewrite(FileError); -- cgit v1.2.3