Fixed bug #19495: stderr spam about missing savefiles
This commit is contained in:
parent
0d692f13e9
commit
e96c623eea
1 changed files with 2 additions and 2 deletions
|
@ -446,10 +446,10 @@ void clean_saves(const std::string& label)
|
|||
{
|
||||
std::vector<save_info> games = get_saves_list();
|
||||
std::string prefix = label + "-" + _("Auto-Save");
|
||||
std::cerr << "Cleaning saves with prefix '" << prefix << "'\n";
|
||||
LOG_SAVE << "Cleaning saves with prefix '" << prefix << "'\n";
|
||||
for (std::vector<save_info>::iterator i = games.begin(); i != games.end(); ++i) {
|
||||
if (i->name().compare(0, prefix.length(), prefix) == 0) {
|
||||
std::cerr << "Deleting savegame '" << i->name() << "'\n";
|
||||
LOG_SAVE << "Deleting savegame '" << i->name() << "'\n";
|
||||
delete_game(i->name());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue