summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.h
diff options
context:
space:
mode:
authordshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-10 19:14:11 +0000
committerdshaligram <dshaligram@c06c8d41-db1a-0410-9941-cceddc491573>2007-10-10 19:14:11 +0000
commit4dd6e5d983a9cd4f7bbc6cbe1fc8568c528537f5 (patch)
tree39ca1cc4c33d20e0ac6664b59e19f16708a65ca7 /crawl-ref/source/abl-show.h
parent1e5e19e56b953406d129205900a5bc5be76da0ae (diff)
downloadcrawl-ref-4dd6e5d983a9cd4f7bbc6cbe1fc8568c528537f5.tar.gz
crawl-ref-4dd6e5d983a9cd4f7bbc6cbe1fc8568c528537f5.zip
Fixed all abilities being listed as using piety (jarpiain).
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@2414 c06c8d41-db1a-0410-9941-cceddc491573
Diffstat (limited to 'crawl-ref/source/abl-show.h')
-rw-r--r--crawl-ref/source/abl-show.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/abl-show.h b/crawl-ref/source/abl-show.h
index db4a1f5aa3..ce96ffd873 100644
--- a/crawl-ref/source/abl-show.h
+++ b/crawl-ref/source/abl-show.h
@@ -24,7 +24,7 @@ struct generic_cost
int base, add, rolls;
generic_cost(int num)
- : base(num), add((num + 1) / 2 + 1), rolls(1)
+ : base(num), add(num == 0? 0 : (num + 1) / 2 + 1), rolls(1)
{
}
generic_cost(int num, int _add, int _rolls = 1)