summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/spl-cast.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index de03254986..1a97aeb7d5 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -568,7 +568,7 @@ bool cast_a_spell(void)
if (unthing == 2)
return (false);
- if (unthing >= 'a' && unthing <= 'y')
+ if ( isalpha(unthing) )
{
keyin = unthing;
break;