summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/command.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-11 17:02:11 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-11 17:02:11 +0000
commitbca18c2aa4a437d136fa9c1a3885b993a065c837 (patch)
tree8fe9d70a9d57d987629205baa99a274933aa3bbe /crawl-ref/source/command.cc
parente5db234d57ff8e71c3780903aef07ddc43afab2e (diff)
downloadcrawl-ref-bca18c2aa4a437d136fa9c1a3885b993a065c837.tar.gz
crawl-ref-bca18c2aa4a437d136fa9c1a3885b993a065c837.zip
Fix part of [2578176]: Fix help database lookups of spell names, so that
Bolt of Inaccuracy is properly listed as being in one of the rods of destruction. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9024 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/command.cc')
-rw-r--r--crawl-ref/source/command.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/command.cc b/crawl-ref/source/command.cc
index 55023f0af5..ae0c88f9a1 100644
--- a/crawl-ref/source/command.cc
+++ b/crawl-ref/source/command.cc
@@ -1343,7 +1343,8 @@ static bool _do_description(std::string key, std::string type,
append_missile_info(desc);
desc += "$";
}
- else if (get_item_by_name(&mitm[thing_created], name, OBJ_BOOKS)
+ else if (type == "spell"
+ || get_item_by_name(&mitm[thing_created], name, OBJ_BOOKS)
|| get_item_by_name(&mitm[thing_created], name, OBJ_STAVES))
{
if (!_append_books(desc, mitm[thing_created], key))