summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNikolay Korolev <nickvnuk@gmail.com>2020-07-01 14:12:25 +0200
committerNikolay Korolev <nickvnuk@gmail.com>2020-07-01 14:12:25 +0200
commit779d4e02a43fe19e8a0509a9beccf24d9083ebe5 (patch)
treede8618a979e8e12b7c457274bb044871050da346 /src
parentAudio fixes (diff)
downloadre3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar.gz
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar.bz2
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar.lz
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar.xz
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.tar.zst
re3-779d4e02a43fe19e8a0509a9beccf24d9083ebe5.zip
Diffstat (limited to '')
-rw-r--r--src/control/Script.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/control/Script.cpp b/src/control/Script.cpp
index 934571ef..40bbd0cf 100644
--- a/src/control/Script.cpp
+++ b/src/control/Script.cpp
@@ -1356,7 +1356,8 @@ static void PrintToLog(const char* format, ...)
printf("%s", tmp);
#if SCRIPT_LOG_FILE_LEVEL == 1 || SCRIPT_LOG_FILE_LEVEL == 2
- fwrite(tmp, 1, strlen(tmp), dbg_log);
+ if (dbg_log)
+ fwrite(tmp, 1, strlen(tmp), dbg_log);
#endif
}