OSDN Git Service

[Refactor] #3642 VS2022の警告 (関数戻り値のムーブ)を解消した
[hengbandforosx/hengbandosx.git] / src / wizard / items-spoiler.cpp
index 239acf6..2919299 100644 (file)
@@ -154,7 +154,7 @@ SpoilerOutputResultType spoil_obj_desc()
             PlayerType dummy;
             const auto item = prepare_item_for_obj_desc(bi_id);
             const auto item_name = describe_flavor(&dummy, &item, OD_NAME_ONLY | OD_STORE);
-            const auto [depth, price] = get_info(item);
+            const auto &[depth, price] = get_info(item);
             const auto dam_or_ac = describe_dam_or_ac(item);
             const auto weight = describe_weight(item);
             const auto chance = describe_chance(item);