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/item_use.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/item_use.cc')
-rw-r--r-- | crawl-ref/source/item_use.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crawl-ref/source/item_use.cc b/crawl-ref/source/item_use.cc index f643c6d757..74d66f9336 100644 --- a/crawl-ref/source/item_use.cc +++ b/crawl-ref/source/item_use.cc @@ -2156,7 +2156,7 @@ static void _rebrand_weapon(item_def& wpn) 12, SPWPN_EVASION, 5, SPWPN_ELECTROCUTION, 3, SPWPN_CHAOS, - 0); + -1); } else { @@ -2170,7 +2170,7 @@ static void _rebrand_weapon(item_def& wpn) 12, SPWPN_PROTECTION, 8, SPWPN_VAMPIRICISM, 3, SPWPN_CHAOS, - 0); + -1); } } |