X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=init.c;h=76bdc8ae21732c08e4449120769f81a8149e4aa6;hp=d7789ad7ce85aa17a9f23bb4b0d9165107a26e7e;hb=f4d3f6def9559ccdfff99db0d6bb70e2b8e23b99;hpb=1e59d6b476a7f7f7b169a99e4918a4a2a1afb9cb diff --git a/init.c b/init.c index d7789ad..76bdc8a 100644 --- a/init.c +++ b/init.c @@ -5,7 +5,6 @@ #include "advent.h" #include "database.h" -#include "newdb.h" /* * Initialisation @@ -226,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 <= HNTMAX; i++) { + for (int i = 0; i < HINT_COUNT; i++) { game.hinted[i] = false; game.hintlc[i] = 0; }