Fix enexto complaint when morguemon returned null

This commit is contained in:
Pasi Kallinen
2015-11-14 09:59:35 +02:00
parent 95772261dc
commit 739b6708ee
2 changed files with 2 additions and 2 deletions

View File

@@ -422,7 +422,7 @@ int mm_flags;
while (cnt--) {
mdat = morguemon();
if (enexto(&cc, mm->x, mm->y, mdat)
if (mdat && enexto(&cc, mm->x, mm->y, mdat)
&& (!revive_corpses
|| !(otmp = sobj_at(CORPSE, cc.x, cc.y))
|| !revive(otmp, FALSE)))

View File

@@ -448,7 +448,7 @@ int psflags;
|| mntmp == urole.femalenum)) {
const char *pm_name;
/* mkclass_ploy() can pick a !polyok()
/* mkclass_poly() can pick a !polyok()
candidate; if so, usually try again */
if (class) {
if (rn2(3) || --tryct > 0)