summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spl-cast.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 22:35:28 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-03 22:35:28 +0000
commite9fd95f6c3dccee78f770c32757da8cd0f938011 (patch)
treed8db42feea3b77f5e4d3c46a85bab0d2c13a8201 /crawl-ref/source/spl-cast.cc
parentbf2a59fd761571998062b21409ee678e2852254b (diff)
downloadcrawl-ref-e9fd95f6c3dccee78f770c32757da8cd0f938011.tar.gz
crawl-ref-e9fd95f6c3dccee78f770c32757da8cd0f938011.zip
Add ASSERT(!crawl_state.arena) to a number of places.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8184 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spl-cast.cc')
-rw-r--r--crawl-ref/source/spl-cast.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/crawl-ref/source/spl-cast.cc b/crawl-ref/source/spl-cast.cc
index 7c2753a7ec..2e57483d43 100644
--- a/crawl-ref/source/spl-cast.cc
+++ b/crawl-ref/source/spl-cast.cc
@@ -991,6 +991,8 @@ int _setup_evaporate_cast()
// Others are currently unused or unimplemented.
spret_type your_spells(spell_type spell, int powc, bool allow_fail)
{
+ ASSERT(!crawl_state.arena);
+
const bool wiz_cast = (crawl_state.prev_cmd == CMD_WIZARD && !allow_fail);
dist spd;