summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/newgame.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/newgame.cc')
-rw-r--r--crawl-ref/source/newgame.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/newgame.cc b/crawl-ref/source/newgame.cc
index 7c89bc1810..86f4d07c52 100644
--- a/crawl-ref/source/newgame.cc
+++ b/crawl-ref/source/newgame.cc
@@ -2376,7 +2376,7 @@ static bool _choose_weapon()
}
}
while (keyin != '*' && keyin != '+'
- && (keyin < 'a' || keyin > ('a' + num_choices)
+ && (keyin < 'a' || keyin >= ('a' + num_choices)
|| startwep_restrictions[keyin - 'a'] == CC_BANNED));
}