summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/random-pick.h
diff options
context:
space:
mode:
authorPete Hurst <pete@streamuniverse.tv>2013-06-24 03:49:08 +0100
committerPete Hurst <pete@streamuniverse.tv>2013-06-24 03:49:49 +0100
commit3fa853d4f8db5d4487732d6b79f30e829716b3b5 (patch)
tree0a58f0c900e5c379f2a3821844120290c06ec678 /crawl-ref/source/random-pick.h
parentf3b8f8be5159b1b7182cc2431394d3fd3c9717d9 (diff)
downloadcrawl-ref-3fa853d4f8db5d4487732d6b79f30e829716b3b5.tar.gz
crawl-ref-3fa853d4f8db5d4487732d6b79f30e829716b3b5.zip
A slightly more descriptive ASSERT for random-pick
Diffstat (limited to 'crawl-ref/source/random-pick.h')
-rw-r--r--crawl-ref/source/random-pick.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/random-pick.h b/crawl-ref/source/random-pick.h
index ff9157da7b..028f03c081 100644
--- a/crawl-ref/source/random-pick.h
+++ b/crawl-ref/source/random-pick.h
@@ -61,7 +61,7 @@ T random_picker<T, max>::pick(const random_pick_entry<T> *weights, int level,
continue;
int rar = rarity_at(pop, level);
- ASSERT(rar > 0);
+ ASSERTM(rar > 0, "Rarity %d: %d at level %d", rar, pop->value, level);
valid[nvalid].value = pop->value;
valid[nvalid].rarity = rar;