summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/religion.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/religion.cc')
-rw-r--r--crawl-ref/source/religion.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 3b35d2d870..ae2e05a4d6 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1097,11 +1097,6 @@ bool bless_follower(int follower,
bool (*suitable)(const monsters* mon),
bool force)
{
- std::string result;
- monsters *mon;
-
- int chance = (force ? coinflip() : random2(20));
-
// If a follower was specified, and it's suitable, pick it.
// Otherwise, pick a random follower within sight of the player.
if (follower == -1 || (!force && !suitable(&menv[follower])))
@@ -1157,7 +1152,10 @@ bool bless_follower(int follower,
ASSERT(follower != -1 && follower != NON_MONSTER);
// Else, apply blessing to chosen follower.
- mon = &menv[follower];
+ monsters *mon = &menv[follower];
+
+ int chance = (force ? coinflip() : random2(20));
+ std::string result;
if (chance == 0) // 5% chance of holy branding, or priesthood
{