X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=init.c;h=ca9d1940ae9f121fb48c104f5ceaff3a1f21cd59;hb=d92da991062fac03934d029aa4323962a9afa7e1;hp=d9cdd4d1dd431069adea376ead884da5d9769784;hpb=adbbd1df2589038da674edbcaf40c0dc585d4079;p=open-adventure.git diff --git a/init.c b/init.c index d9cdd4d..ca9d194 100644 --- a/init.c +++ b/init.c @@ -217,10 +217,10 @@ void initialise(void) * they are described. game.tally keeps track of how many are * not yet found, so we know when to close the cave. */ game.tally=0; - for (int i=MINTRS; i<=MAXTRS; i++) { - if(object_descriptions[i].inventory != 0) - game.prop[i]= -1; - game.tally=game.tally-game.prop[i]; + for (int treasure=MINTRS; treasure<=MAXTRS; treasure++) { + if(object_descriptions[treasure].inventory != 0) + game.prop[treasure]= -1; + game.tally=game.tally-game.prop[treasure]; } /* Clear the hint stuff. game.hintlc[i] is how long he's been at LOC