X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=score.c;fp=score.c;h=b2db8a6a54097913ad2068c701533b34b8f66008;hp=0916b9a82bf740010f011393f97375f22db10094;hb=c8f6ff3701534e6c1ce59cf3e33aec5e824ed144;hpb=deb61e3dcd060dac685feb71aa21e52165fd8691 diff --git a/score.c b/score.c index 0916b9a..b2db8a6 100644 --- a/score.c +++ b/score.c @@ -87,7 +87,7 @@ 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 = 1; i <= HINT_COUNT; i++) { if (game.hinted[i]) score = score - hints[i-1].penalty; }