OSDN Git Service

[Refactor] #3733 optional 型の値取得処理 value() を撤廃した その3
[hengbandforosx/hengbandosx.git] / src / flavor / named-item-describer.cpp
index a114363..2cc6c89 100644 (file)
@@ -427,7 +427,7 @@ std::string describe_named_item(PlayerType *player_ptr, const ItemEntity &item,
 #endif
     if (item.is_spell_book()) {
         // svalは0から数えているので表示用に+1している
-        ss << format("Lv%d ", item.bi_key.sval().value() + 1);
+        ss << format("Lv%d ", *item.bi_key.sval() + 1);
     }
 
     ss << describe_body(item, opt, basename_sv, modstr);