Fix "gems in apply menu" From a bug report.

This commit is contained in:
nethack.allison
2002-01-28 11:38:25 +00:00
parent aec390d154
commit 39f24cda78
3 changed files with 11 additions and 6 deletions

View File

@@ -2519,15 +2519,13 @@ do_break_wand(obj)
return 1;
}
boolean uhave_greystone()
STATIC_OVL boolean
uhave_greystone()
{
register struct obj *otmp;
for(otmp = invent; otmp; otmp = otmp->nobj)
if(otmp->otyp == LOADSTONE ||
otmp->otyp == FLINT ||
otmp->otyp == LUCKSTONE ||
otmp->otyp == TOUCHSTONE)
if(is_greystone(otmp))
return TRUE;
return FALSE;
}