summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/spells2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'crawl-ref/source/spells2.cc')
-rw-r--r--crawl-ref/source/spells2.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spells2.cc b/crawl-ref/source/spells2.cc
index 746b2b7788..1752ae6405 100644
--- a/crawl-ref/source/spells2.cc
+++ b/crawl-ref/source/spells2.cc
@@ -1320,7 +1320,7 @@ void summon_animals(int pow)
{
// pick a random monster and subtract its cost
if ( varied || num_so_far == 0 )
- mon_chosen = animals[random2(ARRAYSIZE(animals))];
+ mon_chosen = RANDOM_ELEMENT(animals);
const int power_cost = mons_power(mon_chosen) * 3;