- if (d_info[dungeon_type].flags1 & DF1_LAKE_WATER) count += 3;
- if (d_info[dungeon_type].flags1 & DF1_LAKE_LAVA) count += 3;
- if (d_info[dungeon_type].flags1 & DF1_LAKE_RUBBLE) count += 3;
- if (d_info[dungeon_type].flags1 & DF1_LAKE_TREE) count += 3;
+ if (d_info[dungeon_idx].flags1 & DF1_LAKE_WATER) count += 3;
+ if (d_info[dungeon_idx].flags1 & DF1_LAKE_LAVA) count += 3;
+ if (d_info[dungeon_idx].flags1 & DF1_LAKE_RUBBLE) count += 3;
+ if (d_info[dungeon_idx].flags1 & DF1_LAKE_TREE) count += 3;