OSDN Git Service
(root)
/
hengbandforosx
/
hengbandosx.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'develop' into macos-develop
[hengbandforosx/hengbandosx.git]
/
src
/
cmd-io
/
cmd-floor.cpp
diff --git
a/src/cmd-io/cmd-floor.cpp
b/src/cmd-io/cmd-floor.cpp
index
c0f8c5c
..
2abd7e8
100644
(file)
--- a/
src/cmd-io/cmd-floor.cpp
+++ b/
src/cmd-io/cmd-floor.cpp
@@
-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();
}