Switch to 0-indexing for hint handling code.

This commit is contained in:
Jason S. Ninneman 2017-06-21 10:22:45 -07:00
parent c8f6ff3701
commit 79ffdb36f0
3 changed files with 11 additions and 11 deletions

2
init.c
View file

@ -225,7 +225,7 @@ void initialise(void)
/* Clear the hint stuff. game.hintlc[i] is how long he's been at LOC
* with cond bit i. game.hinted[i] is true iff hint i has been
* used. */
for (int i = 1; i <= HINT_COUNT; i++) {
for (int i = 0; i < HINT_COUNT; i++) {
game.hinted[i] = false;
game.hintlc[i] = 0;
}