summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mgrow.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/mgrow.cc')
-rw-r--r--crawl-ref/source/mgrow.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/mgrow.cc b/crawl-ref/source/mgrow.cc
index bdaf066465..40025ee814 100644
--- a/crawl-ref/source/mgrow.cc
+++ b/crawl-ref/source/mgrow.cc
@@ -89,7 +89,7 @@ static const monster_level_up *_monster_level_up_target( monster_type type,
{
const monsterentry *me = get_monster_data(mlup.after);
if (static_cast<int>(me->hpdice[0]) == hit_dice
- && random2(1000) < mlup.chance)
+ && x_chance_in_y(mlup.chance, 1000))
{
return (&mlup);
}