OSDN Git Service

macOS: fix mistakes in merge vauto3.0.0-alpha85-d844aa06f
authorEric Branlund <ebranlund@fastmail.com>
Sat, 24 Jun 2023 13:41:26 +0000 (07:41 -0600)
committerEric Branlund <ebranlund@fastmail.com>
Sat, 24 Jun 2023 13:41:46 +0000 (07:41 -0600)
src/cmd-io/cmd-process-screen.cpp
src/core/asking-player.cpp

index d324d1d..e9764d7 100644 (file)
@@ -205,9 +205,8 @@ void exe_cmd_save_screen_html(const std::filesystem::path &path, bool need_messa
 {
     TERM_LEN wid, hgt;
     term_get_size(&wid, &hgt);
-    auto *fff = angband_fopen(filename, FileOpenMode::WRITE, false,
-        FileOpenType::HTML);
-    if (!check_screen_html_can_open(fff, filename, need_message)) {
+    auto *fff = angband_fopen(path, FileOpenMode::WRITE, false, FileOpenType::HTML);
+    if (!check_screen_html_can_open(fff, path, need_message)) {
         return;
     }
 
index f47c94e..ef86af8 100644 (file)
@@ -443,8 +443,8 @@ std::optional<int> input_value_int(std::string_view prompt, int min, int max, in
 {
     std::stringstream ss;
     char tmp_val[12] = "";
-    std::to_chars(std::begin(tmp_val), std::end(tmp_val) - 1, *value);
-    st << prompt << "(" << min << "-" << max << "): ";
+    std::to_chars(std::begin(tmp_val), std::end(tmp_val) - 1, initial_value);
+    ss << prompt << "(" << min << "-" << max << "): ";
     auto digit = std::max(std::to_string(min).length(), std::to_string(max).length());
     while (true) {
         if (!get_string(ss.str().data(), tmp_val, digit)) {