summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/actor.cc
diff options
context:
space:
mode:
authorNeil Moore <neil@s-z.org>2014-05-31 13:06:56 -0400
committerNeil Moore <neil@s-z.org>2014-05-31 13:06:56 -0400
commit8d10a0c49461fcdd1273e3523770edf0af7ecf63 (patch)
tree31d7456bbf60a2bbd3c2983da952d2b30f3451e0 /crawl-ref/source/actor.cc
parentc0390336e72f97504a8bc5bde54bd5204ab4f5d0 (diff)
downloadcrawl-ref-8d10a0c49461fcdd1273e3523770edf0af7ecf63.tar.gz
crawl-ref-8d10a0c49461fcdd1273e3523770edf0af7ecf63.zip
Fix an uninitialised variable (#8620)
Diffstat (limited to 'crawl-ref/source/actor.cc')
-rw-r--r--crawl-ref/source/actor.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/actor.cc b/crawl-ref/source/actor.cc
index 236d40cd82..e55380133e 100644
--- a/crawl-ref/source/actor.cc
+++ b/crawl-ref/source/actor.cc
@@ -298,7 +298,7 @@ bool actor::clarity(bool calc_unid, bool items) const
int actor::faith(bool calc_unid, bool items) const
{
- int net_faith;
+ int net_faith = 0;
if (items && wearing(EQ_AMULET, AMU_FAITH, calc_unid))
net_faith++;