OSDN Git Service

Merge pull request #3754 from Hourier/Unify-Activation-ItemEntity-1
[hengbandforosx/hengbandosx.git] / src / spell-realm / spells-hex.cpp
index 11ec821..885958c 100644 (file)
@@ -153,7 +153,7 @@ std::pair<bool, std::optional<char>> SpellHex::select_spell_stopping(std::string
             return { false, std::nullopt };
         }
 
-        auto choice = choice_opt.value();
+        auto choice = *choice_opt;
         if (isupper(choice)) {
             choice = static_cast<char>(tolower(choice));
         }