summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/describe.cc
diff options
context:
space:
mode:
authorj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-14 14:25:03 +0000
committerj-p-e-g <j-p-e-g@c06c8d41-db1a-0410-9941-cceddc491573>2009-09-14 14:25:03 +0000
commita58a5788137ad5c8e81286c534ade1e82840041c (patch)
tree03b9dd0f4e90dd67c0a0b9cff0b64ef60ef92c15 /crawl-ref/source/describe.cc
parentce630aeacdfb03552b7750156df37ff2a3725826 (diff)
downloadcrawl-ref-a58a5788137ad5c8e81286c534ade1e82840041c.tar.gz
crawl-ref-a58a5788137ad5c8e81286c534ade1e82840041c.zip
Fix 2858572: tiles spell memorisation crashes.
Also handles dangerous spellbooks correctly now, prompts and all. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@10675 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/describe.cc')
-rw-r--r--crawl-ref/source/describe.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index fbdd17c441..df8f20edcb 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -2460,7 +2460,7 @@ void describe_spell(spell_type spelled, const item_def* item)
if (can_mem && toupper(ch) == 'M')
{
- if (!learn_spell(spelled, item, false) || !you.turn_is_over)
+ if (!learn_spell(spelled, item->sub_type, false) || !you.turn_is_over)
more();
redraw_screen();
}