summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-selfench.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2013-08-10 04:17:46 -0400
committerNeil Moore <neil@s-z.org>2013-08-10 04:28:57 -0400
commit47f5d088a5e46e198d379f3c96e5db0cc1ec4206 (patch)
tree02505ecf97e88f9293ead576b9d2cac55913c931 /crawl-ref/source/spl-selfench.cc
parent8dad8c8a6418051af0ef3214d88625742a2bf8e0 (diff)
downloadcrawl-ref-47f5d088a5e46e198d379f3c96e5db0cc1ec4206.tar.gz
crawl-ref-47f5d088a5e46e198d379f3c96e5db0cc1ec4206.zip
Let auto_list = false work with amnesia.
Diffstat (limited to 'crawl-ref/source/spl-selfench.cc')
-rw-r--r--crawl-ref/source/spl-selfench.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-selfench.cc b/crawl-ref/source/spl-selfench.cc
index c5328e31c0..6f4c38a330 100644
--- a/crawl-ref/source/spl-selfench.cc
+++ b/crawl-ref/source/spl-selfench.cc
@@ -16,6 +16,7 @@
#include "libutil.h"
#include "message.h"
#include "misc.h"
+#include "options.h"
#include "religion.h"
#include "shout.h"
#include "spl-cast.h"
@@ -278,7 +279,7 @@ int cast_selective_amnesia(string *pre_msg)
// Pick a spell to forget.
mpr("Forget which spell ([?*] list [ESC] exit)? ", MSGCH_PROMPT);
- keyin = list_spells(false, false, false);
+ keyin = Options.auto_list ? list_spells(false, false, false) : get_ch();
redraw_screen();
while (true)