Fix segfault when the Wiz fails to reappear due to makemon failing

This commit is contained in:
Pasi Kallinen
2015-10-13 22:02:02 +03:00
parent 60df7b2d3b
commit 7e46c4924c
+1 -1
View File
@@ -519,7 +519,7 @@ resurrect()
mtmp = makemon(&mons[PM_WIZARD_OF_YENDOR], u.ux, u.uy, MM_NOWAIT); mtmp = makemon(&mons[PM_WIZARD_OF_YENDOR], u.ux, u.uy, MM_NOWAIT);
/* affects experience; he's not coming back from a corpse /* affects experience; he's not coming back from a corpse
but is subject to repeated killing like a revived corpse */ but is subject to repeated killing like a revived corpse */
mtmp->mrevived = 1; if (mtmp) mtmp->mrevived = 1;
} else { } else {
/* look for a migrating Wizard */ /* look for a migrating Wizard */
verb = "elude"; verb = "elude";