OSDN Git Service

[Fix] #37353 モンスターが死体を落とさなくなる事象の可能性を修正 / Fixed possible issue that monster mayn't...
authorHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 16:15:38 +0000 (01:15 +0900)
committerHourier <hourier@users.sourceforge.jp>
Sat, 8 Feb 2020 16:15:38 +0000 (01:15 +0900)
src/monster1.c

index 51ceb0e..5d8ef53 100644 (file)
@@ -2329,7 +2329,7 @@ void monster_death(player_type *player_ptr, MONSTER_IDX m_idx, bool drop_item)
        }
 
        bool is_drop_corpse = one_in_(r_ptr->flags1 & RF1_UNIQUE ? 1 : 4);
-       is_drop_corpse &= (r_ptr->flags9 & (RF9_DROP_CORPSE | RF9_DROP_SKELETON));
+       is_drop_corpse &= (r_ptr->flags9 & (RF9_DROP_CORPSE | RF9_DROP_SKELETON)) != 0;
        is_drop_corpse &= !(floor_ptr->inside_arena || player_ptr->phase_out || cloned || ((m_ptr->r_idx == today_mon) && is_pet(m_ptr)));
        if (is_drop_corpse)
        {