Preventing blank history files

develop
Eric Wald 2014-11-14 17:35:06 -07:00
parent 3f82230685
commit c85d4994cf
1 changed files with 2 additions and 0 deletions

@ -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())