summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-02 14:41:25 +0000
committerdolorous <dolorous@c06c8d41-db1a-0410-9941-cceddc491573>2008-05-02 14:41:25 +0000
commit38d5365fe1e4ddb7a4d5955f7feb70118c4ee37f (patch)
tree44986b9cb8768edd8a142acb66f08c07a55f4a6c
parent982699e292d85c697f8458605bc9ab6d3766ca9c (diff)
downloadcrawl-ref-38d5365fe1e4ddb7a4d5955f7feb70118c4ee37f.tar.gz
crawl-ref-38d5365fe1e4ddb7a4d5955f7feb70118c4ee37f.zip
Really fix compile.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4807 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/source/religion.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/crawl-ref/source/religion.cc b/crawl-ref/source/religion.cc
index 10e16dd331..68824f6002 100644
--- a/crawl-ref/source/religion.cc
+++ b/crawl-ref/source/religion.cc
@@ -1098,6 +1098,7 @@ bool bless_follower(int follower,
bool force)
{
int chance = (force ? coinflip() : random2(20));
+ monsters *mon = NULL;
std::string result;
// If a follower was specified, and it's suitable, pick it.
@@ -1155,7 +1156,7 @@ bool bless_follower(int follower,
ASSERT(follower != -1 && follower != NON_MONSTER);
// Else, apply blessing to chosen follower.
- monsters *mon = &menv[follower];
+ mon = &menv[follower];
if (chance == 0) // 5% chance of holy branding, or priesthood
{