Skip to content

Commit

Permalink
fix: save player
Browse files Browse the repository at this point in the history
  • Loading branch information
dudantas committed Nov 1, 2024
1 parent e831961 commit 293eabd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/game/scheduling/save_manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@ bool SaveManager::doSavePlayer(std::shared_ptr<Player> player) {
bool saveSuccess = IOLoginData::savePlayer(player);
if (!saveSuccess) {
logger.error("Failed to save player {}.", player->getName());
} else {
executeTasks();
}

auto duration = bm_savePlayer.duration();
logger.debug("Saving player {} took {} milliseconds.", player->getName(), duration);
return saveSuccess;
Expand Down

0 comments on commit 293eabd

Please sign in to comment.