make the skeleton from the original corpse instead of the copy, so that it gets the same item slot as the corpse and equip_undead() on the skeleton works properly.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8709 c06c8d41-db1a-0410-9941-cceddc491573
I2YM5BHWFX6PLZF75KXNWFRKZQ2I4MFA3YNR6QK6HC7PP7YJQYMQC int o = get_item_slot();if (o != NON_ITEM){item_def skel = item;turn_corpse_into_skeleton(skel);copy_item_to_grid(skel, you.pos());}
turn_corpse_into_chunks(chunks);copy_item_to_grid(chunks, you.pos());