summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abyss.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/abyss.cc')
-rw-r--r--crawl-ref/source/abyss.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/abyss.cc b/crawl-ref/source/abyss.cc
index bb8f286177..39377bddc8 100644
--- a/crawl-ref/source/abyss.cc
+++ b/crawl-ref/source/abyss.cc
@@ -839,12 +839,12 @@ static void _corrupt_square(const crawl_environment &oenv, const coord_def &c)
if (feat == DNGN_ROCK_WALL)
{
env.tile_flv(c).wall = TILE_WALL_UNDEAD
- + random2(tile_dngn_count[TILE_WALL_UNDEAD]);
+ + random2(tile_dngn_count(TILE_WALL_UNDEAD));
}
else if (feat == DNGN_FLOOR)
{
env.tile_flv(c).floor = TILE_FLOOR_NERVES
- + random2(tile_dngn_count[TILE_FLOOR_NERVES]);
+ + random2(tile_dngn_count(TILE_FLOOR_NERVES));
}
#endif
}