summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/abl-show.h
diff options
context:
space:
mode:
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)