summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/ouch.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-04-22 22:33:12 -0400
committerNeil Moore <neil@s-z.org>2014-04-23 00:14:08 -0400
commit940360b8b1c021b547c330e6c9fe1d2f112f8734 (patch)
treee9a24b0b472f44d0555d6aa59cda5f2ab81f3bf3 /crawl-ref/source/ouch.cc
parent7a2063a1c841ca47cec7d9f6806a5d3608637e57 (diff)
downloadcrawl-ref-940360b8b1c021b547c330e6c9fe1d2f112f8734.tar.gz
crawl-ref-940360b8b1c021b547c330e6c9fe1d2f112f8734.zip
Add argument check for check_your_resists (floatingatoll, #8416)
Diffstat (limited to 'crawl-ref/source/ouch.cc')
-rw-r--r--crawl-ref/source/ouch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/ouch.cc b/crawl-ref/source/ouch.cc
index c5ac75fed4..cc0f78d2aa 100644
--- a/crawl-ref/source/ouch.cc
+++ b/crawl-ref/source/ouch.cc
@@ -114,6 +114,8 @@ int check_your_resists(int hurted, beam_type flavour, string source,
int resist;
int original = hurted;
+ ASSERT(beam || !doEffects);
+
dprf("checking resistance: flavour=%d", flavour);
string kaux = "";