- print a message if saving the statistics file fails.

This commit is contained in:
Christoph Oelckers 2021-03-13 12:21:35 +01:00
parent ae09ca7a48
commit fa0be28af1

View file

@ -248,7 +248,11 @@ static void SaveStatistics(const char *fn, TArray<FStatistics> &statlist)
unsigned int j;
FileWriter *fw = FileWriter::Open(fn);
if (fw == nullptr) return;
if (fw == nullptr)
{
Printf(PRINT_HIGH, "Unable to save statistics to %s\n", fn);
return;
}
qsort(&statlist[0], statlist.Size(), sizeof(statlist[0]), compare_episode_names);
for(unsigned i=0;i<statlist.Size ();i++)