From 3b900a8c8c69b9aa319d170c62ea535aaa4fb1a7 Mon Sep 17 00:00:00 2001 From: zelgadis Date: Sat, 17 Jan 2009 05:19:41 +0000 Subject: 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 --- crawl-ref/source/spells2.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/spells2.cc') 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(). -- cgit v1.2.3-54-g00ecf