Fix bug #2517795: debug_item_scan() errors when the Abyss shifts.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8571 c06c8d41-db1a-0410-9941-cceddc491573

Created by  zelgadis  on January 18, 2009
4M7ZGHMNZ7NANTGQ56PNQAK6YUEXU6FOBNTT4UXPKYABAGSZH2JQC
Change contents