diff --git a/library/include/Console.h b/library/include/Console.h index 2f2f68cfa..ce3c90884 100644 --- a/library/include/Console.h +++ b/library/include/Console.h @@ -64,6 +64,8 @@ namespace DFHack } bool save (const char * filename) { + if (!history.size()) + return true; std::ofstream outfile (filename); //fprintf(stderr,"Save: Initialized stream\n"); if(outfile.bad())