X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=actions.c;h=cc2f66cedc1348eb781a5ee8c1ffa18425a03835;hb=c818a10f2875b8b9f63c6cf6d5ef1389e37bf857;hp=51972507052be7e1276022a32633bd5bdc412839;hpb=7c9a0bfb36e0c630d6056e5897d00a8d54317261;p=open-adventure.git diff --git a/actions.c b/actions.c index 5197250..cc2f66c 100644 --- a/actions.c +++ b/actions.c @@ -774,11 +774,10 @@ static int quit(FILE *input) static int read(FILE *input, token_t verb, token_t obj) /* Read. Print stuff based on objtxt. Oyster (?) is special case. */ { - int i; int spk = ACTSPK[verb]; if (obj == INTRANSITIVE) { obj = 0; - for (i=1; i<=NOBJECTS; i++) { + for (int i=1; i<=NOBJECTS; i++) { if (HERE(i) && OBJTXT[i] != 0 && game.prop[i] >= 0) obj = obj * NOBJECTS + i; }