aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-10-13 19:33:12 +0000
committerTorbjörn Andersson2010-10-13 19:33:12 +0000
commitbbbfdad4581ce1aab757f1af6e663f9851543baa (patch)
treea71d1646b4716d25b07731949d900d11d2793d13
parent2a49aa1fea9ff87e3d532c5a61153c6ff7aaa908 (diff)
downloadscummvm-rg350-bbbfdad4581ce1aab757f1af6e663f9851543baa.tar.gz
scummvm-rg350-bbbfdad4581ce1aab757f1af6e663f9851543baa.tar.bz2
scummvm-rg350-bbbfdad4581ce1aab757f1af6e663f9851543baa.zip
SWORD25: Check if _LogFile has been created before flushing.
svn-id: r53445
-rw-r--r--engines/sword25/kernel/log.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/sword25/kernel/log.cpp b/engines/sword25/kernel/log.cpp
index 259c02449f..dd8b073422 100644
--- a/engines/sword25/kernel/log.cpp
+++ b/engines/sword25/kernel/log.cpp
@@ -196,7 +196,8 @@ int BS_Log::_WriteLog(const char *Message) {
}
void BS_Log::_FlushLog() {
- _LogFile->flush();
+ if (_LogFile)
+ _LogFile->flush();
}
void (*BS_LogPtr)(const char *, ...) = BS_Log::Log;