Fix enexto complaint when morguemon returned null
This commit is contained in:
@@ -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)))
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user