From a58a5788137ad5c8e81286c534ade1e82840041c Mon Sep 17 00:00:00 2001 From: j-p-e-g Date: Mon, 14 Sep 2009 14:25:03 +0000 Subject: 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 --- crawl-ref/source/describe.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/describe.cc') 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(); } -- cgit v1.2.3-54-g00ecf