diff options
author | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 02:10:52 -0400 |
---|---|---|
committer | reaverb <reaverb.Crawl@gmail.com> | 2014-06-10 12:58:57 -0400 |
commit | 7e81480cda18144ff185f5248639a072b654deff (patch) | |
tree | ee96229a36d8ab5c00b5032093771796717857e8 /crawl-ref/source/spl-summoning.cc | |
parent | 37dca8855d8c35d9f63bdafe54b967e7f831bb0b (diff) | |
download | crawl-ref-7e81480cda18144ff185f5248639a072b654deff.tar.gz crawl-ref-7e81480cda18144ff185f5248639a072b654deff.zip |
Make random_choose_weighted() end on -1 weight
For consistency with random_choose().
Diffstat (limited to 'crawl-ref/source/spl-summoning.cc')
-rw-r--r-- | crawl-ref/source/spl-summoning.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/spl-summoning.cc b/crawl-ref/source/spl-summoning.cc index 7fd725b9d8..190ec0023a 100644 --- a/crawl-ref/source/spl-summoning.cc +++ b/crawl-ref/source/spl-summoning.cc @@ -2365,7 +2365,7 @@ spret_type cast_haunt(int pow, const coord_def& where, god_type god, bool fail) 5, MONS_WRAITH, 2, MONS_FREEZING_WRAITH, 2, MONS_PHANTASMAL_WARRIOR, - 0); + -1); if (monster *mons = create_monster( mgen_data(mon, |