Switch to 0-indexing for hint handling code.
[open-adventure.git] / init.c
diff --git a/init.c b/init.c
index 220f9cbe197aa6084376683dda0da8934995c9bb..76bdc8ae21732c08e4449120769f81a8149e4aa6 100644 (file)
--- a/init.c
+++ b/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;
     }