debug_item_scan() and debug_mons_scan() should report an error, rather than

crash, when encountering an out-of-bounds monster or an invalid monster/item index. (A crash will soon happen anyways, but this prevents the crash reporter from recursively crashing when it calls the scan functions).

Make debug_mons_scan() give the index of the monsters it's reporting on.

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

Created by  zelgadis  on January 26, 2009
3EMUQNNO6WWZMRVSRDRYPLQS2B6GYNTQSWAPY6BWY365XWZZV5XAC
Change contents