summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/invent.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/invent.cc')
-rw-r--r--crawl-ref/source/invent.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/crawl-ref/source/invent.cc b/crawl-ref/source/invent.cc
index 49e497070a..53289b4036 100644
--- a/crawl-ref/source/invent.cc
+++ b/crawl-ref/source/invent.cc
@@ -754,6 +754,9 @@ static bool item_class_selected(const item_def &i, int selector)
case OSEL_WIELD:
return (itype == OBJ_WEAPONS || itype == OBJ_STAVES
|| itype == OBJ_MISCELLANY);
+ case OSEL_MEMORISE:
+ return (itype == OBJ_BOOKS && i.sub_type != BOOK_MANUAL
+ && (i.sub_type != BOOK_DESTRUCTION || !item_type_known(i)));
case OBJ_SCROLLS:
return (itype == OBJ_SCROLLS || itype == OBJ_BOOKS);
case OSEL_EQUIP: