summaryrefslogtreecommitdiff
path: root/src/gen_evol.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gen_evol.cc')
-rw-r--r--src/gen_evol.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gen_evol.cc b/src/gen_evol.cc
index 0ccd063f..f6cee5a7 100644
--- a/src/gen_evol.cc
+++ b/src/gen_evol.cc
@@ -51,7 +51,7 @@ void evolve_level(bool_ noise)
if (f_info[c_ptr->feat].flags1 & FF1_PERMANENT) continue;
/* Avoid evolving grids with object or monster */
- if (c_ptr->o_idx || c_ptr->m_idx) continue;
+ if ((!c_ptr->o_idxs.empty()) || c_ptr->m_idx) continue;
/* Avoid evolving player grid */
if ((j == p_ptr->py) && (i == p_ptr->px)) continue;
@@ -85,7 +85,7 @@ void evolve_level(bool_ noise)
if (f_info[c_ptr->feat].flags1 & FF1_PERMANENT) continue;
/* Avoid evolving grids with object or monster */
- if (c_ptr->o_idx || c_ptr->m_idx) continue;
+ if ((!c_ptr->o_idxs.empty()) || c_ptr->m_idx) continue;
/* Avoid evolving player grid */
if ((j == p_ptr->py) && (i == p_ptr->px)) continue;