From 4dd6e5d983a9cd4f7bbc6cbe1fc8568c528537f5 Mon Sep 17 00:00:00 2001 From: dshaligram Date: Wed, 10 Oct 2007 19:14:11 +0000 Subject: 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 --- crawl-ref/source/abl-show.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crawl-ref/source/abl-show.h') 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) -- cgit v1.2.3-54-g00ecf