OSDN Git Service

Merge branch 'develop' into macos-develop vauto3.0.1-beta12-32a605920
authorEric Branlund <ebranlund@fastmail.com>
Tue, 14 May 2024 22:29:01 +0000 (16:29 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Tue, 14 May 2024 22:29:01 +0000 (16:29 -0600)
1  2 
src/save/save.cpp

@@@ -265,11 -265,10 +265,11 @@@ static bool save_player_aux(PlayerType 
      if (fd >= 0) {
          (void)fd_close(fd);
          safe_setuid_grab();
 -        saving_savefile = angband_fopen(path, FileOpenMode::WRITE, true);
 +        saving_savefile = angband_fopen(path, FileOpenMode::WRITE, true,
 +            FileOpenType::SAVE);
          safe_setuid_drop();
          if (saving_savefile) {
-             if (wr_savefile_new(player_ptr, type)) {
+             if (wr_savefile_new(player_ptr)) {
                  is_save_successful = true;
              }