Fix compile error CS0165 on Mono
When running on mono building scripts, it will yield
Errors:
+ Engines/BulkOrders/SmallTailorBOD.cs:
CS0165: Line 88: Use of unassigned local variable `useMaterials'
Calling RandomBool out of if
This commit is contained in:
parent
ab4246058b
commit
d8e6ddf13b
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue