X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;h=cd4b9e6d2ff779ce65ca37decc1667165adc9723;hp=0916b9a82bf740010f011393f97375f22db10094;hb=f4d3f6def9559ccdfff99db0d6bb70e2b8e23b99;hpb=deb61e3dcd060dac685feb71aa21e52165fd8691 diff --git a/score.c b/score.c index 0916b9a..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 <= HNTMAX; 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;