summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-21 00:37:13 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-03-21 00:37:13 +0000
commit9310a8c76714dadd862b7e28dcf6c105be747388 (patch)
treeb028e5ae6857dbae58a8960796a9275228269d1f /crawl-ref/source/religion.cc
parent24b96cffa063343daffb8ea99463a3079a9c26a6 (diff)
downloadcrawl-ref-9310a8c76714dadd862b7e28dcf6c105be747388.tar.gz
crawl-ref-9310a8c76714dadd862b7e28dcf6c105be747388.zip
Use alive() properly in another instance.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3775 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 22e57a615f..fb3d82860e 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -3484,7 +3484,7 @@ void beogh_convert_orc(monsters *orc, bool emergency,
orc->flags |= MF_GOD_GIFT;
- if (orc->hit_points <= 0)
+ if (!orc->alive())
orc->hit_points = std::min(random_range(1, 4), orc->max_hit_points);
// to avoid immobile "followers"