summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2009-12-21 17:05:33 +0100
committerAdam Borowski <kilobyte@angband.pl>2009-12-21 17:05:33 +0100
commit452089b27eeb323d277751ef224f23b2ea708ffb (patch)
treeec92f047aabc5d4d8defe03974f0c20ad0f9a0da
parente73c57e2444cd401edf060070c3766853d5578ec (diff)
downloadcrawl-ref-452089b27eeb323d277751ef224f23b2ea708ffb.tar.gz
crawl-ref-452089b27eeb323d277751ef224f23b2ea708ffb.zip
Fix a crash with pickup of items with subtype=21 mysteriously failing.
-rw-r--r--crawl-ref/source/monster.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/monster.cc b/crawl-ref/source/monster.cc
index b71b2a4558..55b342a903 100644
--- a/crawl-ref/source/monster.cc
+++ b/crawl-ref/source/monster.cc
@@ -1783,7 +1783,7 @@ bool monsters::pickup_gold(item_def &item, int near)
bool monsters::pickup_misc(item_def &item, int near)
{
// Never pick up runes.
- if (item.sub_type == MISC_RUNE_OF_ZOT)
+ if (item.base_type == OBJ_MISCELLANY && item.sub_type == MISC_RUNE_OF_ZOT)
return (false);
// Holy monsters and worshippers of good gods won't pick up evil