X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=blobdiff_plain;f=src%2Fscores.c;fp=src%2Fscores.c;h=b11de8356baff4e2fc1fcdd1b60ac20299cfea4e;hp=1580ac26fc710b774aaab5f62e65ac59d7f538ea;hb=0dbae6f56c7024ac1985958dd99c5f9936b2116b;hpb=471fee03ffb2a8bf5e33fd9993543ebec2e36f9a diff --git a/src/scores.c b/src/scores.c index 1580ac26f..b11de8356 100644 --- a/src/scores.c +++ b/src/scores.c @@ -509,7 +509,7 @@ errr top_twenty(void) sprintf(the_score.cur_lev, "%3d", MIN((u16b)p_ptr->lev, 999)); sprintf(the_score.cur_dun, "%3d", (int)dun_level); sprintf(the_score.max_lev, "%3d", MIN((u16b)p_ptr->max_plv, 999)); - sprintf(the_score.max_dun, "%3d", (int)max_dlv[dungeon_idx]); + sprintf(the_score.max_dun, "%3d", (int)max_dlv[p_ptr->dungeon_idx]); /* Save the cause of death (31 chars) */ if (strlen(p_ptr->died_from) >= sizeof(the_score.how)) @@ -622,7 +622,7 @@ errr predict_score(void) sprintf(the_score.cur_lev, "%3d", MIN((u16b)p_ptr->lev, 999)); sprintf(the_score.cur_dun, "%3d", (int)dun_level); sprintf(the_score.max_lev, "%3d", MIN((u16b)p_ptr->max_plv, 999)); - sprintf(the_score.max_dun, "%3d", (int)max_dlv[dungeon_idx]); + sprintf(the_score.max_dun, "%3d", (int)max_dlv[p_ptr->dungeon_idx]); /* Hack -- no cause of death */ /* まだ死んでいないときの識別文字 */