aboutsummaryrefslogtreecommitdiff
path: root/src/database/database-files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/database/database-files.cpp')
-rw-r--r--src/database/database-files.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/database/database-files.cpp b/src/database/database-files.cpp
index f42535348..b1c79c94a 100644
--- a/src/database/database-files.cpp
+++ b/src/database/database-files.cpp
@@ -105,7 +105,8 @@ void PlayerDatabaseFiles::savePlayer(RemotePlayer *player)
if (!fs::safeWriteToFile(path, ss.str())) {
infostream << "Failed to write " << path << std::endl;
}
- player->setModified(false);
+
+ player->on_successful_save();
}
bool PlayerDatabaseFiles::removePlayer(const std::string &name)