]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - radiant/console.cpp
build fix for Debian's i586-mingw32msvc
[xonotic/netradiant.git] / radiant / console.cpp
index ad282f16e5b787bdabdadfe49ef0256c9aaece28..94a496f696bf61e69d24466bc8be9e3739becfaf 100644 (file)
@@ -54,6 +54,8 @@ void Sys_LogFile(bool enable)
   if (enable && !g_hLogFile)
   {
     // settings say we should be logging and we don't have a log file .. so create it
+       if(!SettingsPath_get()[0])
+               return; // cannot open a log file yet
     // open a file to log the console (if user prefs say so)
     // the file handle is g_hLogFile
     // the log file is erased