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)))