summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
authorzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 05:19:41 +0000
committerzelgadis <zelgadis@c06c8d41-db1a-0410-9941-cceddc491573>2009-01-17 05:19:41 +0000
commit3b900a8c8c69b9aa319d170c62ea535aaa4fb1a7 (patch)
tree801648f5e0b85ade9e3adce74dab20cd8751caf9 /crawl-ref/source/spells2.cc
parent94b43ee8dcbc9c0244e6c86250b0393399118bc2 (diff)
downloadcrawl-ref-3b900a8c8c69b9aa319d170c62ea535aaa4fb1a7.tar.gz
crawl-ref-3b900a8c8c69b9aa319d170c62ea535aaa4fb1a7.zip
Fix Tukima's Dance crashing if the player is holding no weapon.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8491 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 22a99236c8..57f399338f 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1708,7 +1708,7 @@ bool cast_tukimas_dance(int pow, god_type god,
if (i == NON_ITEM)
success = false;
- else
+ else if (success)
// Copy item now so that mitm[i] is occupied and doesn't get picked
// by get_item_slot() when giving the dancing weapon it's item
// during create_monster().