summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/state.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/state.cc b/crawl-ref/source/state.cc
index f7bd86bc7d..03cd5817db 100644
--- a/crawl-ref/source/state.cc
+++ b/crawl-ref/source/state.cc
@@ -192,7 +192,7 @@ bool interrupt_cmd_repeat( activity_interrupt_type ai,
{
if (ai == AI_FULL_MP)
crawl_state.cancel_cmd_repeat("Magic restored.");
- else if (ai = AI_FULL_HP)
+ else if (ai == AI_FULL_HP)
crawl_state.cancel_cmd_repeat("HP restored.");
else
crawl_state.cancel_cmd_repeat("Command repetition interrupted.");