summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/acr.cc
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 09:28:21 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2009-02-12 09:28:21 +0000
commit2368157486f9e3c0806d3d79e939fbc3533eb105 (patch)
tree5c2c6dda99e613467ce9151023e0a8157a7e01ff /crawl-ref/source/acr.cc
parenta7e2693b2ed1e9b75a9cfefeaf4f9db4a1e694a6 (diff)
downloadcrawl-ref-2368157486f9e3c0806d3d79e939fbc3533eb105.tar.gz
crawl-ref-2368157486f9e3c0806d3d79e939fbc3533eb105.zip
Fix [2591166]: Unbound keys (which produce CMD_NO_CMD) still count for the
last command, thus causing an ASSERT when repeating. git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@9034 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/acr.cc')
-rw-r--r--crawl-ref/source/acr.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/crawl-ref/source/acr.cc b/crawl-ref/source/acr.cc
index 11ba485d3a..4777fde84a 100644
--- a/crawl-ref/source/acr.cc
+++ b/crawl-ref/source/acr.cc
@@ -1017,6 +1017,7 @@ static void _input()
crawl_state.waiting_for_command = false;
if (cmd != CMD_PREV_CMD_AGAIN && cmd != CMD_REPEAT_CMD
+ && cmd != CMD_NO_CMD
&& !crawl_state.is_replaying_keys())
{
crawl_state.prev_cmd = cmd;