OSDN Git Service

Merge branch 'develop' into macos-develop
[hengbandforosx/hengbandosx.git] / src / cmd-io / cmd-floor.cpp
index c0f8c5c..2abd7e8 100644 (file)
@@ -73,11 +73,11 @@ void do_cmd_locate(PlayerType *player_ptr)
         auto dir = 0;
         while (dir == 0) {
             const auto command = input_command(prompt, true);
-            if (!command.has_value()) {
+            if (!command) {
                 break;
             }
 
-            dir = get_keymap_dir(command.value());
+            dir = get_keymap_dir(*command);
             if (dir == 0) {
                 bell();
             }