summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/tilepick.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/tilepick.cc')
-rw-r--r--crawl-ref/source/tilepick.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/crawl-ref/source/tilepick.cc b/crawl-ref/source/tilepick.cc
index 0e9de2c776..50c768cf67 100644
--- a/crawl-ref/source/tilepick.cc
+++ b/crawl-ref/source/tilepick.cc
@@ -4540,6 +4540,11 @@ void tile_draw_floor()
{
const coord_def ep(cx, cy);
const coord_def gc = show2grid(ep);
+
+ // XXX: This should probably be handled a better way.
+ if (!in_bounds(gc))
+ continue;
+
int bg = TILE_DNGN_UNSEEN | tile_unseen_flag(gc);
if (you.see_cell(gc))