summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/traps.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/traps.cc')
-rw-r--r--crawl-ref/source/traps.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/traps.cc b/crawl-ref/source/traps.cc
index 54d20dbf56..f5ae7076dd 100644
--- a/crawl-ref/source/traps.cc
+++ b/crawl-ref/source/traps.cc
@@ -1388,7 +1388,7 @@ void handle_items_on_shaft(const coord_def& pos, bool open_shaft)
{
int next = mitm[o].link;
- if (is_valid_item( mitm[o] ))
+ if (mitm[o].is_valid())
{
if (is_terrain_seen(pos))
{