diff options
author | Adam Borowski <kilobyte@angband.pl> | 2013-09-03 13:37:00 +0200 |
---|---|---|
committer | Adam Borowski <kilobyte@angband.pl> | 2013-09-03 14:34:17 +0200 |
commit | 373a2cc9899e8025b6662abdbc9b1e58f9b4d8b0 (patch) | |
tree | ffce5320dbb122dcc4279ad081b03d7bc097ece5 /crawl-ref/source/dbg-scan.cc | |
parent | 9203b688c69c08d631bd4f741de9eb50086e6e58 (diff) | |
download | crawl-ref-373a2cc9899e8025b6662abdbc9b1e58f9b4d8b0.tar.gz crawl-ref-373a2cc9899e8025b6662abdbc9b1e58f9b4d8b0.zip |
Look for bogus monster types in dbg-scan.cc
Diffstat (limited to 'crawl-ref/source/dbg-scan.cc')
-rw-r--r-- | crawl-ref/source/dbg-scan.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/crawl-ref/source/dbg-scan.cc b/crawl-ref/source/dbg-scan.cc index 82ca3a9ea7..c490269912 100644 --- a/crawl-ref/source/dbg-scan.cc +++ b/crawl-ref/source/dbg-scan.cc @@ -336,6 +336,12 @@ void debug_mons_scan() ASSERT(m->mid > 0); coord_def pos = m->pos(); + if (invalid_monster_type(m->type)) + { + mprf(MSGCH_ERROR, "Bogus monster type %d at (%d, %d), midx = %d", + m->type, pos.x, pos.y, i); + } + if (!in_bounds(pos)) { mprf(MSGCH_ERROR, "Out of bounds monster: %s at (%d, %d), " |