fprintf(fff, _("《達成したクエスト》\n", "< Completed Quest >\n"));
int16_t total = 0;
for (auto &q_idx : quest_numbers) {
- quest_type *const q_ptr = &quest[q_idx];
+ auto &q_ref = quest[q_idx];
- if (q_ptr->status == QuestStatusType::FINISHED && do_cmd_knowledge_quests_aux(player_ptr, fff, q_idx)) {
+ if (q_ref.status == QuestStatusType::FINISHED && do_cmd_knowledge_quests_aux(player_ptr, fff, q_idx)) {
++total;
}
}
fprintf(fff, _("《失敗したクエスト》\n", "< Failed Quest >\n"));
int16_t total = 0;
for (auto &q_idx : quest_numbers) {
- quest_type *const q_ptr = &quest[q_idx];
+ auto &q_ref = quest[q_idx];
- if (((q_ptr->status == QuestStatusType::FAILED_DONE) || (q_ptr->status == QuestStatusType::FAILED)) && do_cmd_knowledge_quests_aux(player_ptr, fff, q_idx)) {
+ if (((q_ref.status == QuestStatusType::FAILED_DONE) || (q_ref.status == QuestStatusType::FAILED)) && do_cmd_knowledge_quests_aux(player_ptr, fff, q_idx)) {
++total;
}
}