X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=cd4b9e6d2ff779ce65ca37decc1667165adc9723;hp=b2db8a6a54097913ad2068c701533b34b8f66008;hb=79ffdb36f0c9f2fa8f9f2470e5a0c81729d8f622;hpb=c8f6ff3701534e6c1ce59cf3e33aec5e824ed144 diff --git a/score.c b/score.c index b2db8a6..cd4b9e6 100644 --- a/score.c +++ b/score.c @@ -87,9 +87,9 @@ long score(enum termination mode) mxscor += 2; /* Deduct for hints/turns/saves. Hints < 4 are special; see database desc. */ - for (long i = 1; i <= HINT_COUNT; i++) { + for (long i = 0; i < HINT_COUNT; i++) { if (game.hinted[i]) - score = score - hints[i-1].penalty; + score = score - hints[i].penalty; } if (game.novice) score -= 5;