<Someone> pointed out a possible infinite loop here.

This commit is contained in:
jwalz
2002-03-15 22:07:24 +00:00
parent 6eb8c05ec8
commit 579360ed93

View File

@@ -281,7 +281,7 @@ learn()
boolean costly = TRUE;
/* JDS: lenses give 50% faster reading; 33% smaller read time */
if (ublindf && ublindf->otyp == LENSES && rn2(2)) delay++;
if (delay && ublindf && ublindf->otyp == LENSES && rn2(2)) delay++;
if (delay) { /* not if (delay++), so at end delay == 0 */
delay++;
return(1); /* still busy */