summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/randart.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/randart.cc')
-rw-r--r--crawl-ref/source/randart.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index 9c4bef9155..40c406ee75 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -241,7 +241,7 @@ static std::string _replace_name_parts(const std::string name_in,
{
do
{
- which_god = static_cast<god_type>(random2(NUM_GODS));
+ which_god = static_cast<god_type>(random2(NUM_GODS - 1) + 1);
}
while (!_god_fits_artefact(which_god, item));
}