[Scummvm-cvs-logs] SF.net SVN: scummvm:[53445] scummvm/trunk/engines/sword25/kernel/log.cpp

eriktorbjorn at users.sourceforge.net eriktorbjorn at users.sourceforge.net
Wed Oct 13 21:33:12 CEST 2010


Revision: 53445
          http://scummvm.svn.sourceforge.net/scummvm/?rev=53445&view=rev
Author:   eriktorbjorn
Date:     2010-10-13 19:33:12 +0000 (Wed, 13 Oct 2010)

Log Message:
-----------
SWORD25: Check if _LogFile has been created before flushing.

Modified Paths:
--------------
    scummvm/trunk/engines/sword25/kernel/log.cpp

Modified: scummvm/trunk/engines/sword25/kernel/log.cpp
===================================================================
--- scummvm/trunk/engines/sword25/kernel/log.cpp	2010-10-13 19:22:04 UTC (rev 53444)
+++ scummvm/trunk/engines/sword25/kernel/log.cpp	2010-10-13 19:33:12 UTC (rev 53445)
@@ -196,7 +196,8 @@
 }
 
 void BS_Log::_FlushLog() {
-	_LogFile->flush();
+	if (_LogFile)
+		_LogFile->flush();
 }
 
 void (*BS_LogPtr)(const char *, ...) = BS_Log::Log;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list