added program config file support for run-time special edition support
[rocksndiamonds.git] / src / libgame / misc.c
index 052509f6f914e8afd9f25985d05f62ef70349a13..660f4df6a80ee83a2a4cfc9733514b1c126f5cf2 100644 (file)
@@ -1073,6 +1073,9 @@ void Error(int mode, char *format, ...)
   static boolean last_line_was_separator = FALSE;
   char *process_name = "";
 
+  if (program.error_file == NULL)
+    return;
+
 #if defined(PLATFORM_ANDROID)
   android_log_prio = (mode & ERR_DEBUG ? ANDROID_LOG_DEBUG :
                      mode & ERR_INFO ? ANDROID_LOG_INFO :