diff options
author | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 15:12:44 +0000 |
---|---|---|
committer | haranp <haranp@c06c8d41-db1a-0410-9941-cceddc491573> | 2009-01-01 15:12:44 +0000 |
commit | 0732bcb874b810b8e521b02946819070ad78170c (patch) | |
tree | 9982cde1be81a204b27ac8b260f3de90ebdedd78 /crawl-ref/source/food.cc | |
parent | f347a1fdff553d79d562fc39d218f15c3377423f (diff) | |
download | crawl-ref-0732bcb874b810b8e521b02946819070ad78170c.tar.gz crawl-ref-0732bcb874b810b8e521b02946819070ad78170c.zip |
Fix [2076940]: swapping to artefacts to butcher corpses could fail.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8083 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/food.cc')
-rw-r--r-- | crawl-ref/source/food.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/food.cc b/crawl-ref/source/food.cc index a3cf2ee638..075341682f 100644 --- a/crawl-ref/source/food.cc +++ b/crawl-ref/source/food.cc @@ -222,8 +222,9 @@ static bool _find_butchering_implement(int &butcher_tool) && can_cut_meat( tool ) && can_wield( &tool ) // Don't even suggest autocursing items. + // Note that unknown autocursing is OK. && (!is_random_artefact(tool) - || !randart_known_wpn_property(tool, RAP_CURSED))) + || (randart_known_wpn_property(tool, RAP_CURSED) <= 0))) { if (Options.easy_butcher && item_known_uncursed(tool) |