From 10d884fe307d84aef5ef0f528c9752f7cba90313 Mon Sep 17 00:00:00 2001 From: Kamron Batman <3953314+kamronbatman@users.noreply.github.com> Date: Wed, 18 Nov 2020 18:29:21 -0800 Subject: [PATCH] Fixes divide by zero (#323) --- Projects/UOContent/Items/Skill Items/Tools/BaseRunicTool.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Projects/UOContent/Items/Skill Items/Tools/BaseRunicTool.cs b/Projects/UOContent/Items/Skill Items/Tools/BaseRunicTool.cs index 1ef69eb45..d829c5064 100644 --- a/Projects/UOContent/Items/Skill Items/Tools/BaseRunicTool.cs +++ b/Projects/UOContent/Items/Skill Items/Tools/BaseRunicTool.cs @@ -132,7 +132,7 @@ namespace Server.Items percent = v; } - percent *= 10000 + 10000 / Math.Abs(high - low) + 1; + percent *= 10000 + 10000 / (Math.Abs(high - low) + 1); return low + (high - low) * percent / 1000001; }