summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/effects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/effects.cc')
-rw-r--r--crawl-ref/source/effects.cc10
1 files changed, 5 insertions, 5 deletions
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 30dbc1be0c..04ba728117 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -1220,16 +1220,16 @@ bool acquirement(unsigned char force_class, int agent)
if (thing.base_type == OBJ_BOOKS)
{
- if (thing.base_type == BOOK_MINOR_MAGIC_I
- || thing.base_type == BOOK_MINOR_MAGIC_II
- || thing.base_type == BOOK_MINOR_MAGIC_III)
+ if (thing.sub_type == BOOK_MINOR_MAGIC_I
+ || thing.sub_type == BOOK_MINOR_MAGIC_II
+ || thing.sub_type == BOOK_MINOR_MAGIC_III)
{
you.had_book[ BOOK_MINOR_MAGIC_I ] = 1;
you.had_book[ BOOK_MINOR_MAGIC_II ] = 1;
you.had_book[ BOOK_MINOR_MAGIC_III ] = 1;
}
- else if (thing.base_type == BOOK_CONJURATIONS_I
- || thing.base_type == BOOK_CONJURATIONS_II)
+ else if (thing.sub_type == BOOK_CONJURATIONS_I
+ || thing.sub_type == BOOK_CONJURATIONS_II)
{
you.had_book[ BOOK_CONJURATIONS_I ] = 1;
you.had_book[ BOOK_CONJURATIONS_II ] = 1;