Merge pull request #2 from fraga/fixCS0165

If it makes Mono happy, why not?

Fix compile error CS0165 on Mono
This commit is contained in:
Mark Sturgill 2014-07-05 23:22:02 -07:00
commit 07921356d4

View file

@ -64,10 +64,10 @@ namespace Server.Engines.BulkOrders
public static SmallTailorBOD CreateRandomFor( Mobile m )
{
SmallBulkEntry[] entries;
bool useMaterials;
bool useMaterials = Utility.RandomBool();
double theirSkill = m.Skills[SkillName.Tailoring].Base;
if ( useMaterials = Utility.RandomBool() && theirSkill >= 6.2 ) // Ugly, but the easiest leather BOD is Leather Cap which requires at least 6.2 skill.
if ( useMaterials && theirSkill >= 6.2 ) // Ugly, but the easiest leather BOD is Leather Cap which requires at least 6.2 skill.
entries = SmallBulkEntry.TailorLeather;
else
entries = SmallBulkEntry.TailorCloth;