Fix enexto complaint when morguemon returned null
This commit is contained in:
@@ -422,7 +422,7 @@ int mm_flags;
|
|||||||
|
|
||||||
while (cnt--) {
|
while (cnt--) {
|
||||||
mdat = morguemon();
|
mdat = morguemon();
|
||||||
if (enexto(&cc, mm->x, mm->y, mdat)
|
if (mdat && enexto(&cc, mm->x, mm->y, mdat)
|
||||||
&& (!revive_corpses
|
&& (!revive_corpses
|
||||||
|| !(otmp = sobj_at(CORPSE, cc.x, cc.y))
|
|| !(otmp = sobj_at(CORPSE, cc.x, cc.y))
|
||||||
|| !revive(otmp, FALSE)))
|
|| !revive(otmp, FALSE)))
|
||||||
|
|||||||
@@ -448,7 +448,7 @@ int psflags;
|
|||||||
|| mntmp == urole.femalenum)) {
|
|| mntmp == urole.femalenum)) {
|
||||||
const char *pm_name;
|
const char *pm_name;
|
||||||
|
|
||||||
/* mkclass_ploy() can pick a !polyok()
|
/* mkclass_poly() can pick a !polyok()
|
||||||
candidate; if so, usually try again */
|
candidate; if so, usually try again */
|
||||||
if (class) {
|
if (class) {
|
||||||
if (rn2(3) || --tryct > 0)
|
if (rn2(3) || --tryct > 0)
|
||||||
|
|||||||
Reference in New Issue
Block a user