summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--crawl-ref/source/mon-util.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/crawl-ref/source/mon-util.cc b/crawl-ref/source/mon-util.cc
index 7c0da9cf5d..c4ced2539e 100644
--- a/crawl-ref/source/mon-util.cc
+++ b/crawl-ref/source/mon-util.cc
@@ -2458,7 +2458,9 @@ void monsters::init_with(const monsters &mon)
god = mon.god;
if (mon.ghost.get())
- ghost.reset( new ghost_demon( *mon.ghost ) );
+ ghost.reset(new ghost_demon( *mon.ghost ));
+ else
+ ghost.reset(NULL);
}
coord_def monsters::pos() const