summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/mon-pick.cc
diff options
context:
space:
mode:
authorAdam Borowski <kilobyte@angband.pl>2012-08-27 00:48:26 +0200
committerAdam Borowski <kilobyte@angband.pl>2012-08-27 00:48:26 +0200
commitc086f60cd87777a410498bf9690d71cd56b670ac (patch)
tree4b38cb11a9c6c8ee8c6b55841f83013636d656d8 /crawl-ref/source/mon-pick.cc
parenta4cafc8eb2c70a0fbefde91bd49f8c65e4e3b292 (diff)
downloadcrawl-ref-c086f60cd87777a410498bf9690d71cd56b670ac.tar.gz
crawl-ref-c086f60cd87777a410498bf9690d71cd56b670ac.zip
Don't pretend pick_monster_no_rarity() uses depth, either.
Diffstat (limited to 'crawl-ref/source/mon-pick.cc')
-rw-r--r--crawl-ref/source/mon-pick.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/mon-pick.cc b/crawl-ref/source/mon-pick.cc
index 774483da0c..6243e5b73e 100644
--- a/crawl-ref/source/mon-pick.cc
+++ b/crawl-ref/source/mon-pick.cc
@@ -72,12 +72,12 @@ int mons_rarity(monster_type mcls, branch_type branch)
}
// only Pan currently
-monster_type pick_monster_no_rarity(const level_id &place)
+monster_type pick_monster_no_rarity(branch_type branch)
{
- if (!population[place.branch].count)
+ if (!population[branch].count)
return MONS_0;
- return population[place.branch].pop[random2(population[place.branch].count)].mons;
+ return population[branch].pop[random2(population[branch].count)].mons;
}
bool branch_has_monsters(branch_type branch)