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
[Refactor] #3733 optional 型の値取得処理 value() を撤廃した その3
[hengbandforosx/hengbandosx.git]
/
src
/
flavor
/
named-item-describer.cpp
diff --git
a/src/flavor/named-item-describer.cpp
b/src/flavor/named-item-describer.cpp
index
a114363
..
2cc6c89
100644
(file)
--- a/
src/flavor/named-item-describer.cpp
+++ b/
src/flavor/named-item-describer.cpp
@@
-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);