Switch to 0-indexing for hint handling code.
This commit is contained in:
parent
c8f6ff3701
commit
79ffdb36f0
3 changed files with 11 additions and 11 deletions
2
init.c
2
init.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue