summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/debug.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/debug.cc')
-rw-r--r--crawl-ref/source/debug.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/debug.cc b/crawl-ref/source/debug.cc
index 58d4ddc907..e45846fbeb 100644
--- a/crawl-ref/source/debug.cc
+++ b/crawl-ref/source/debug.cc
@@ -1486,7 +1486,7 @@ bool get_item_by_name(item_def *item, char* specs,
strcpy(obj_name, entry->name);
ptr = strstr( strlwr(obj_name), specs );
- if (ptr != NULL && item->base_type == class_wanted)
+ if (ptr != NULL && entry->base_type == class_wanted)
{
make_item_unrandart(*item, index);
if (create_for_real)