diff --git a/src/invent.c b/src/invent.c index 647eaf5b4..2764547b7 100644 --- a/src/invent.c +++ b/src/invent.c @@ -928,7 +928,7 @@ register const char *let,*word; /* suppress corpses on astral, amulets elsewhere */ || (!strcmp(word, "sacrifice") && /* (!astral && amulet) || (astral && !amulet) */ - (!Is_astralevel(&u.uz) ^ otmp->oclass != AMULET_CLASS)) + (!Is_astralevel(&u.uz) ^ (otmp->oclass != AMULET_CLASS))) ) { /* acceptable but not listed as likely candidate */ foo--;