summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 19:08:20 +0000
committerennewalker <ennewalker@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 19:08:20 +0000
commita6ba15c18bfc465daecb5390ad73f0a0f3df940b (patch)
tree0763f971a6da06dcedf0f45e42863f403a83efd7 /crawl-ref/source/spells2.cc
parent8ab0577c78e4fe3fb46d710a2c3a3ff7b422e2d4 (diff)
downloadcrawl-ref-a6ba15c18bfc465daecb5390ad73f0a0f3df940b.tar.gz
crawl-ref-a6ba15c18bfc465daecb5390ad73f0a0f3df940b.zip
[2483338] Fixing tiles crash during 'Detect Items' spell.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8174 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 217bb6164f..9577310ebb 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -102,7 +102,7 @@ int detect_items( int pow )
#ifdef USE_TILE
// Don't replace previously seen items with an unseen one.
if (!is_terrain_seen(*ri))
- tile_place_item_bk(ri->x, ri->y, TILE_UNSEEN_ITEM);
+ env.tile_bk_fg[ri->x][ri->y] = TILE_UNSEEN_ITEM;
#endif
}
}