operator precedence confusion

This commit is contained in:
Enno Rehling 2010-02-06 06:27:31 +00:00
parent 2cef07790c
commit c481a5e80a
1 changed files with 1 additions and 1 deletions

View File

@ -1366,7 +1366,7 @@ terminate(troop dt, troop at, int type, const char *damage, boolean missile)
}
for (pitm=&du->items; *pitm; pitm=&(*pitm)->next) {
const item_type * itype = (*pitm)->type;
if (!itype->flags & ITF_CURSED && dt.index < (*pitm)->number) {
if (!(itype->flags & ITF_CURSED) && dt.index < (*pitm)->number) {
/* 25% Grundchance, das ein Item kaputtgeht. */
if (rng_int() % 4 < 1) i_change(pitm, itype, -1);
}