Fixes divide by zero (#323)
This commit is contained in:
parent
602c14fed7
commit
10d884fe30
1 changed files with 1 additions and 1 deletions
|
|
@ -132,7 +132,7 @@ namespace Server.Items
|
||||||
percent = v;
|
percent = v;
|
||||||
}
|
}
|
||||||
|
|
||||||
percent *= 10000 + 10000 / Math.Abs(high - low) + 1;
|
percent *= 10000 + 10000 / (Math.Abs(high - low) + 1);
|
||||||
|
|
||||||
return low + (high - low) * percent / 1000001;
|
return low + (high - low) * percent / 1000001;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue