summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-place.cc
diff options
context:
space:
mode:
authorSteve Melenchuk <smelenchuk@gmail.com>2014-04-18 19:28:44 -0600
committerSteve Melenchuk <smelenchuk@gmail.com>2014-04-18 19:28:44 -0600
commit8fbdb1ddcac53f6d814f651dafdf1fff968fd89e (patch)
tree21f40524862163eb448e8b17e3068f4a1ecc2570 /crawl-ref/source/mon-place.cc
parent0f31695dd94df3bfeb385e759874f735288e5dfd (diff)
downloadcrawl-ref-8fbdb1ddcac53f6d814f651dafdf1fff968fd89e.tar.gz
crawl-ref-8fbdb1ddcac53f6d814f651dafdf1fff968fd89e.zip
Hopefully avoid a BAND_RANDOM_SINGLE crash (wheals).
I haven't been able to reproduce the crash that was mentioned to me, but these fields being NULL probably has to do with it.
Diffstat (limited to 'crawl-ref/source/mon-place.cc')
-rw-r--r--crawl-ref/source/mon-place.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-place.cc b/crawl-ref/source/mon-place.cc
index f8af245066..aa44679cd2 100644
--- a/crawl-ref/source/mon-place.cc
+++ b/crawl-ref/source/mon-place.cc
@@ -3375,8 +3375,11 @@ static monster_type _band_member(band_type band, int which)
{
monster_type tmptype = MONS_PROGRAM_BUG;
coord_def tmppos;
+ dungeon_char_type tmpfeat;
+ level_id place = level_id::current();
return _resolve_monster_type(RANDOM_BANDLESS_MONSTER, PROX_ANYWHERE,
- tmptype, tmppos, 0, NULL, NULL, NULL);
+ tmptype, tmppos, 0, &tmpfeat, &place,
+ NULL);
}
default: