OSDN Git Service

Merge branch 'develop' into macos-develop vauto3.0.0-alpha88-8df86f0b4
authorEric Branlund <ebranlund@fastmail.com>
Sun, 1 Oct 2023 16:46:17 +0000 (10:46 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Sun, 1 Oct 2023 16:46:17 +0000 (10:46 -0600)
1  2 
src/cmd-io/cmd-process-screen.cpp

@@@ -203,8 -203,8 +203,8 @@@ static void write_html_footer(FILE *tmp
  
  void exe_cmd_save_screen_html(const std::filesystem::path &path, bool need_message)
  {
-     const auto [wid, hgt] = term_get_size();
+     const auto &[wid, hgt] = term_get_size();
 -    auto *fff = angband_fopen(path, FileOpenMode::WRITE);
 +    auto *fff = angband_fopen(path, FileOpenMode::WRITE, false, FileOpenType::HTML);
      if (!check_screen_html_can_open(fff, path, need_message)) {
          return;
      }