summaryrefslogtreecommitdiffstats
path: root/crawl-ref/source/makeitem.cc
diff options
context:
space:
mode:
authorreaverb <reaverb.Crawl@gmail.com>2014-06-10 01:14:43 -0400
committerreaverb <reaverb.Crawl@gmail.com>2014-06-10 01:14:43 -0400
commit7e13d23ab01eeb5149a44123619e466b4099d8f8 (patch)
tree34746ee85b5700f92baec34a604b0040b977afec /crawl-ref/source/makeitem.cc
parent37b922f22f4914981a2d9271254a3c8cf66d9f93 (diff)
downloadcrawl-ref-7e13d23ab01eeb5149a44123619e466b4099d8f8.tar.gz
crawl-ref-7e13d23ab01eeb5149a44123619e466b4099d8f8.zip
Fix some random_choose() calls to not crash
Oops, for some reason the crash disappeared with the old version even though it apparently didn't solve the problem.
Diffstat (limited to 'crawl-ref/source/makeitem.cc')
-rw-r--r--crawl-ref/source/makeitem.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/crawl-ref/source/makeitem.cc b/crawl-ref/source/makeitem.cc
index 7380db6cfb..63f83a6924 100644
--- a/crawl-ref/source/makeitem.cc
+++ b/crawl-ref/source/makeitem.cc
@@ -759,7 +759,7 @@ static weapon_type _determine_weapon_subtype(int item_level)
WPN_EXECUTIONERS_AXE,
WPN_QUICK_BLADE,
WPN_CLAYMORE,
- 0);
+ -1);
}
else if (x_chance_in_y(item_level, 20))
{
@@ -781,7 +781,7 @@ static weapon_type _determine_weapon_subtype(int item_level)
WPN_TRIDENT,
WPN_FLAIL,
WPN_CUTLASS,
- 0);
+ -1);
}
else
{
@@ -794,7 +794,7 @@ static weapon_type _determine_weapon_subtype(int item_level)
WPN_CLUB,
WPN_WHIP,
WPN_SHORT_SWORD,
- 0);
+ -1);
}
}