diff options
author | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-17 22:54:42 +0000 |
---|---|---|
committer | j-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573> | 2008-07-17 22:54:42 +0000 |
commit | 3b29df9eccc5cd4998355f858c2ab7d03f350932 (patch) | |
tree | 2f2934dedc15ed4d8bde60a9a48649504556f050 /crawl-ref/source/religion.cc | |
parent | 2bad330ab6184ddb6a90571c3cf27cfc5f7deafa (diff) | |
download | crawl-ref-0.4.1.tar.gz crawl-ref-0.4.1.zip |
Update 0.4.1 tag -- fixes some bugs, including a serious memory0.4.1
corruption and a scoring one.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/tags/stone_soup-0.4.1@6594 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r-- | crawl-ref/source/religion.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc index d0f9d7dee0..7317e0c5f5 100644 --- a/crawl-ref/source/religion.cc +++ b/crawl-ref/source/religion.cc @@ -3091,16 +3091,17 @@ bool god_dislikes_item_handling(const item_def &item) { const int item_brand = get_weapon_brand(item); - if (item_brand == SPWPN_VENOM) + if (item_brand == SPWPN_VENOM && item_type_known(item)) return (true); } else if (item.base_type == OBJ_MISSILES) { const int item_brand = get_ammo_brand(item); - if (item_brand == SPMSL_POISONED - || item_brand == SPMSL_POISONED_II - || item_brand == SPMSL_CURARE) + if (item_type_known(item) && + (item_brand == SPMSL_POISONED + || item_brand == SPMSL_POISONED_II + || item_brand == SPMSL_CURARE)) { return (true); } |